[c] Backport of atlas parsing fix. See #1213.

This commit is contained in:
badlogic 2018-12-05 11:46:38 +01:00
parent ef5f68d8fa
commit b379841e6c

View File

@ -70,8 +70,8 @@ static void trim(Str* str) {
(str->begin)++;
if (str->begin == str->end) return;
str->end--;
/*while (isspace((unsigned char)*str->end) && str->end >= str->begin)
str->end--;*/
while (((unsigned char)*str->end == '\r') && str->end >= str->begin)
str->end--;
str->end++;
}