From d88a1f977211f3c4371c4d996b02586b6280830b Mon Sep 17 00:00:00 2001 From: ganovelli Date: Mon, 28 Apr 2014 15:37:36 +0000 Subject: [PATCH] fixed string-related bugs in reading file images --- wrap/io_trimesh/import_out.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/wrap/io_trimesh/import_out.h b/wrap/io_trimesh/import_out.h index 40c1e674..5713f226 100644 --- a/wrap/io_trimesh/import_out.h +++ b/wrap/io_trimesh/import_out.h @@ -69,20 +69,17 @@ typedef typename OpenMeshType::FaceIterator FaceIterator; typedef typename OpenMeshType::EdgeIterator EdgeIterator; static void readline(FILE *fp, char *line, int max=100){ - int i=0; - char c; - fscanf(fp, "%c", &c); - while( (c!=10) && (c!=13) && (i