|
@@ -66,11 +66,11 @@ typedef struct {
|
|
} Str;
|
|
} Str;
|
|
|
|
|
|
static void trim (Str* str) {
|
|
static void trim (Str* str) {
|
|
- while (isspace(*str->begin) && str->begin < str->end)
|
|
|
|
|
|
+ while (isspace((unsigned char)*str->begin) && str->begin < str->end)
|
|
(str->begin)++;
|
|
(str->begin)++;
|
|
if (str->begin == str->end) return;
|
|
if (str->begin == str->end) return;
|
|
str->end--;
|
|
str->end--;
|
|
- while (isspace(*str->end) && str->end >= str->begin)
|
|
|
|
|
|
+ while (isspace((unsigned char)*str->end) && str->end >= str->begin)
|
|
str->end--;
|
|
str->end--;
|
|
str->end++;
|
|
str->end++;
|
|
}
|
|
}
|