]> diplodocus.org Git - nmh/blobdiff - uip/sortm.c
Assume POSIX ctype.h; don't vet toupper()'s parameter.
[nmh] / 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';