From: Ben Pfaff Date: Sun, 31 Jul 2005 05:39:50 +0000 (+0000) Subject: (find_word) Cast `char' to `unsigned char' before passing to X-Git-Tag: v0.4.0~21 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2b204dcb1b9912e683e30bdbd4131bd44b6ca7f;p=pspp-builds.git (find_word) Cast `char' to `unsigned char' before passing to isspace(). --- diff --git a/src/ChangeLog b/src/ChangeLog index 5c77f6e9..41a6cbff 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Sat Jul 30 22:38:46 2005 Ben Pfaff + + * command.c: (find_word) Cast `char' to `unsigned char' before + passing to isspace(). + Sat Jul 30 22:36:29 2005 Ben Pfaff * case.c: (case_compare) Implement as delegating to diff --git a/src/command.c b/src/command.c index 31854467..de77be80 100644 --- a/src/command.c +++ b/src/command.c @@ -305,7 +305,7 @@ static const char * find_word (const char *string, size_t *word_len) { /* Skip whitespace and asterisks. */ - while (isspace (*string)) + while (isspace ((unsigned char) *string)) string++; /* End of string? */