~mdw
/
sgt
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
126e167
)
Change a temporary buffer from unsigned chars to chars, avoiding a pointer-cast
author
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 17 Nov 2002 01:56:01 +0000
(
01:56
+0000)
committer
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 17 Nov 2002 01:56:01 +0000
(
01:56
+0000)
warning.
git-svn-id: svn://svn.tartarus.org/sgt/putty@2215
cda61777
-01e9-0310-a592-
d414129be87e
terminal.c
patch
|
blob
|
blame
|
history
diff --git
a/terminal.c
b/terminal.c
index
dc2392e
..
d57218a
100644
(file)
--- a/
terminal.c
+++ b/
terminal.c
@@
-3251,12
+3251,12
@@
static void clipme(Terminal *term, pos top, pos bottom, int rect)
if (DIRECT_FONT(uc)) {
if (c >= ' ' && c != 0x7F) {
-
unsigned
char buf[4];
+ char buf[4];
WCHAR wbuf[4];
int rv;
if (is_dbcs_leadbyte(font_codepage, (BYTE) c)) {
buf[0] = c;
- buf[1] =
(unsigned char)
ldata[top.x + 1];
+ buf[1] = ldata[top.x + 1];
rv = mb_to_wc(font_codepage, 0, buf, 2, wbuf, 4);
top.x++;
} else {