From ac95517a622081f0f4625dbdbad283b54ab56300 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 21 Oct 2016 21:10:42 +0100 Subject: [PATCH] Assume POSIX ctype.h; don't vet toupper()'s parameter. --- sbr/mf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.56.0