X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/6d177721a1a7749eb0d713fc6768fc758a83e2ab..e41356ff1a423bcc7bbe3fbbc36407aa067c76e0:/charset/xenc.c?ds=sidebyside diff --git a/charset/xenc.c b/charset/xenc.c index b6532f29..11787978 100644 --- a/charset/xenc.c +++ b/charset/xenc.c @@ -81,7 +81,7 @@ int charset_from_xenc(const char *name) p = name; q = xencs[i].name; while (*p || *q) { - if (tolower(*p) != tolower(*q)) + if (tolower((unsigned char)*p) != tolower((unsigned char)*q)) break; p++; q++; }