Browse Source

Atlas readLine to not skip starting \n.

NathanSweet 12 years ago
parent
commit
5fbef05423
1 changed files with 1 additions and 2 deletions
  1. 1 2
      spine-c/src/spine/Atlas.c

+ 1 - 2
spine-c/src/spine/Atlas.c

@@ -86,9 +86,8 @@ static int readLine (const char* begin, const char* end, Str* str) {
 	str->begin = nextStart;
 
 	/* Find next delimiter. */
-	do {
+	while (nextStart != end && *nextStart != '\n')
 		nextStart++;
-	} while (nextStart != end && *nextStart != '\n');
 
 	str->end = nextStart;
 	trim(str);