On Windows, character set specifications of the form 'IBM437' would never have
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 22 Nov 2009 19:10:11 +0000 (19:10 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 22 Nov 2009 19:10:11 +0000 (19:10 +0000)
worked due to a typo. Spotted by Todd Burkey.

git-svn-id: svn://svn.tartarus.org/sgt/putty@8755 cda61777-01e9-0310-a592-d414129be87e

windows/winucs.c

index 2412e40..757a275 100644 (file)
@@ -1088,7 +1088,7 @@ int decode_codepage(char *cp_name)
        if (tolower(d[0]) == 'c' && tolower(d[1]) == 'p')
            d += 2;
        if (tolower(d[0]) == 'i' && tolower(d[1]) == 'b'
-           && tolower(d[1]) == 'm')
+           && tolower(d[2]) == 'm')
            d += 3;
        for (s = d; *s >= '0' && *s <= '9'; s++);
        if (*s == 0 && s != d)