X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/6d177721a1a7749eb0d713fc6768fc758a83e2ab..d9e0300f903aa7cfb85a94480ad544082a7a6c35:/charset/mimeenc.c 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++; }