mirror of https://gitee.com/openkylin/gfxboot.git
Make sure to pass unsigned chars to isspace(), per the C standard; not doing so
can cause problems on powerpc and other architectures. Gbp-Pq: Name 0002-ctype.patch
This commit is contained in:
parent
d8b9cce648
commit
d3c945abcc
|
@ -658,7 +658,7 @@ char *next_word(char **ptr)
|
|||
|
||||
*word = 0;
|
||||
|
||||
while(isspace(*s)) if(*s++ == '\n') line++;
|
||||
while(isspace((unsigned char) *s)) if(*s++ == '\n') line++;
|
||||
|
||||
if(!*s) {
|
||||
*ptr = s;
|
||||
|
@ -757,7 +757,7 @@ char *next_word(char **ptr)
|
|||
word[n] = 0;
|
||||
}
|
||||
else {
|
||||
while(!isspace(*s)) s++;
|
||||
while(!isspace((unsigned char) *s)) s++;
|
||||
}
|
||||
|
||||
if(!is_str) {
|
||||
|
|
Loading…
Reference in New Issue