Placate a trivial compiler warning.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 18 Dec 2002 11:51:09 +0000 (11:51 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 18 Dec 2002 11:51:09 +0000 (11:51 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@2347 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index 5950072..1446fa2 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 {