From: Ralph Corderoy Date: Fri, 21 Oct 2016 19:39:11 +0000 (+0100) Subject: Assume POSIX ctype.h; don't vet tolower()'s parameter. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/1e54947d0c2fc6379b5bb9ef0e9e969a3c8f6204?ds=sidebyside Assume POSIX ctype.h; don't vet tolower()'s parameter. --- diff --git a/uip/sortm.c b/uip/sortm.c index 9351ec03..7cc2283c 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -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';