X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e2eebc77cc570f77d906bc0cc6890092068468cb..3bcb5ef8fc34c3c453ebd968eb80577dc60e71de:/sbr/uprf.c?ds=inline diff --git a/sbr/uprf.c b/sbr/uprf.c index dddacaf8..179955a3 100644 --- a/sbr/uprf.c +++ b/sbr/uprf.c @@ -22,12 +22,11 @@ uprf (const char *c1, const char *c2) { c &= 0xff; mask = *c1 & 0xff; - c = (isalpha(c) && isupper(c)) ? tolower(c) : c; - mask = (isalpha(mask) && isupper(mask)) ? tolower(mask) : mask; + c = tolower(c); + mask = tolower(mask); if (c != mask) return 0; - else - c1++; + c1++; } return 1; }