# HG changeset patch # User Gerd Moellmann # Date 976890805 0 # Node ID cb2667416fa58b980128e839c42c63b8f61fedfa # Parent 9286b7ab7104bde5deb1b77a5ee94e85b6a99ed2 (get_keyword): Make sure that isspace and similar aren't called with a negative argument. diff -r 9286b7ab7104 -r cb2667416fa5 lib-src/fakemail.c --- a/lib-src/fakemail.c Fri Dec 15 14:32:55 2000 +0000 +++ b/lib-src/fakemail.c Fri Dec 15 14:33:25 2000 +0000 @@ -253,18 +253,18 @@ { static char keyword[KEYWORD_SIZE]; register char *ptr; - register char c; + register int c; ptr = &keyword[0]; - c = *field++; + c = (unsigned char) *field++; if (isspace (c) || c == ':') return ((char *) NULL); *ptr++ = (islower (c) ? toupper (c) : c); - while (((c = *field++) != ':') && ! isspace (c)) + while (((c = (unsigned char) *field++) != ':') && ! isspace (c)) *ptr++ = (islower (c) ? toupper (c) : c); *ptr++ = '\0'; while (isspace (c)) - c = *field++; + c = (unsigned char) *field++; if (c != ':') return ((char *) NULL); *rest = field;