]> diplodocus.org Git - nmh/commitdiff
Assume POSIX ctype.h; don't vet tolower()'s parameter.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 19:39:11 +0000 (20:39 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 19:39:34 +0000 (20:39 +0100)
uip/sortm.c

index 9351ec0..7cc2283 100644 (file)
@@ -451,8 +451,7 @@ get_fields (char *datesw, int msg, struct smsg *smsg)
 
            while ((c = *cp++)) {
                if (isascii((unsigned char) c) && isalnum((unsigned char) c))
-                   *cp2++ = isupper((unsigned char) c) ?
-                                       tolower((unsigned char) c) : c;
+                   *cp2++ = tolower((unsigned char)c);
            }
 
            *cp2 = '\0';