]> diplodocus.org Git - nmh/commitdiff
Assume POSIX ctype.h; don't vet toupper()'s parameter.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 20:10:42 +0000 (21:10 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 20:10:42 +0000 (21:10 +0100)
sbr/mf.c

index 9e5cad8..63b13ba 100644 (file)
--- 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;
     }