]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - terminal.c
Arguments to ctype functions are required to be either EOF or representable
[PuTTY_svn.git] / terminal.c
index 19d5a750972415519f554c118fb6f39af09d6a9a..4f0d82259f30caf70e9117cfb7fbd3b41592954d 100644 (file)
@@ -5942,7 +5942,7 @@ void term_key(Terminal *term, Key_Sym keysym, wchar_t *text, size_t tlen,
                if (modifiers & PKM_CONTROL)
                    c &= 0x1f;
                else if (modifiers & PKM_SHIFT)
-                   c = toupper(c);
+                       c = toupper((unsigned char)c);
            }
            *p++ = c;
            goto done;