]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Placate a trivial compiler warning.
authorSimon Tatham <anakin@pobox.com>
Wed, 18 Dec 2002 11:51:09 +0000 (11:51 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 18 Dec 2002 11:51:09 +0000 (11:51 +0000)
[originally from svn r2347]

terminal.c

index 595007255d19d3e64d734bd253dcef0c6d462782..1446fa21c9ca031f9c6543bbdf15d01f95b11893 100644 (file)
@@ -3309,7 +3309,7 @@ static void clipme(Terminal *term, pos top, pos bottom, int rect)
                    int rv;
                    if (is_dbcs_leadbyte(font_codepage, (BYTE) c)) {
                        buf[0] = c;
-                       buf[1] = ldata[top.x + 1];
+                       buf[1] = (char) (0xFF & ldata[top.x + 1]);
                        rv = mb_to_wc(font_codepage, 0, buf, 2, wbuf, 4);
                        top.x++;
                    } else {