]> diplodocus.org Git - nmh/commitdiff
cast isspace() arg to unsigned char in previous commit
authorPaul Fox <pgf@foxharp.boston.ma.us>
Mon, 1 Dec 2014 18:32:26 +0000 (13:32 -0500)
committerPaul Fox <pgf@foxharp.boston.ma.us>
Mon, 1 Dec 2014 18:32:26 +0000 (13:32 -0500)
uip/mhfixmsg.c

index 2c4ef369c1c67a43ac1025bd60e397ba35a6e240..8acd200e1153bca9da3c1e286c395d9c0e4dafd2 100644 (file)
@@ -1889,7 +1889,7 @@ fix_always (CT ct, int *message_mods) {
 
             /* whitespace following a trailing ';' will be nuked as well */
             if (hf->value[len - 1] == '\n')
 
             /* whitespace following a trailing ';' will be nuked as well */
             if (hf->value[len - 1] == '\n')
-                while (isspace(hf->value[len - 2])) len--;
+                while (isspace((unsigned char)(hf->value[len - 2]))) len--;
 
             if (hf->value[len - 2] == ';') {
                 /* Remove trailing ';' from parameter value. */
 
             if (hf->value[len - 2] == ';') {
                 /* Remove trailing ';' from parameter value. */
@@ -1901,7 +1901,7 @@ fix_always (CT ct, int *message_mods) {
                    but can't hurt. */
                 if (strcasecmp(hf->name, "Content-Type") == 0 && ct->c_ctline) {
                     size_t l = strlen(ct->c_ctline) - 1;
                    but can't hurt. */
                 if (strcasecmp(hf->name, "Content-Type") == 0 && ct->c_ctline) {
                     size_t l = strlen(ct->c_ctline) - 1;
-                    while (isspace(ct->c_ctline[l]) || ct->c_ctline[l] == ';')
+                    while (isspace((unsigned char)(ct->c_ctline[l])) || ct->c_ctline[l] == ';')
                         ct->c_ctline[l--] = '\0';
                 }
 
                         ct->c_ctline[l--] = '\0';
                 }