From: Ralph Corderoy Date: Fri, 21 Oct 2016 20:10:42 +0000 (+0100) Subject: Assume POSIX ctype.h; don't vet toupper()'s parameter. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/ac95517a622081f0f4625dbdbad283b54ab56300?ds=sidebyside Assume POSIX ctype.h; don't vet toupper()'s parameter. --- diff --git a/sbr/mf.c b/sbr/mf.c index 9e5cad8c..63b13ba4 100644 --- a/sbr/mf.c +++ b/sbr/mf.c @@ -39,10 +39,8 @@ lequal (const char *a, const char *b) for (; *a; a++, b++) { if (*b == 0) return FALSE; - c1 = islower ((unsigned char) *a) ? - toupper ((unsigned char) *a) : *a; - c2 = islower ((unsigned char) *b) ? - toupper ((unsigned char) *b) : *b; + c1 = toupper((unsigned char)*a); + c2 = toupper((unsigned char)*b); if (c1 != c2) return FALSE; }