X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/6d177721a1a7749eb0d713fc6768fc758a83e2ab..8221906dee8ae94c7c81d320d00ef774765d0bc6:/charset/mimeenc.c?ds=sidebyside diff --git a/charset/mimeenc.c b/charset/mimeenc.c index 437781f6..93ad89e7 100644 --- a/charset/mimeenc.c +++ b/charset/mimeenc.c @@ -202,7 +202,7 @@ int charset_from_mimeenc(const char *name) p = name; q = mimeencs[i].name; while (*p || *q) { - if (tolower(*p) != tolower(*q)) + if (tolower((unsigned char)*p) != tolower((unsigned char)*q)) break; p++; q++; }