diff --git a/chinese/tin/files/patch-charset.c b/chinese/tin/files/patch-charset.c index 48aa3a1ffe47..fdd790d6fef9 100644 --- a/chinese/tin/files/patch-charset.c +++ b/chinese/tin/files/patch-charset.c @@ -1,5 +1,5 @@ ---- src/charset.c.orig Mon Jan 29 18:32:23 2001 -+++ src/charset.c Sat Apr 14 08:50:15 2001 +--- src/charset.c.orig Tue Jan 29 22:31:11 2002 ++++ src/charset.c Fri Mar 22 22:55:40 2002 @@ -335,7 +335,7 @@ for (c = (unsigned char *)buf; *c; c++) { @@ -9,12 +9,12 @@ *c = '?'; while (--t_len > 0) c++; -@@ -364,7 +364,7 @@ +@@ -363,7 +363,7 @@ for (c = (unsigned char *)buf; *c; c++) { - # ifdef ENABLE_MBLEN + #ifdef ENABLE_MBLEN - if (!(my_isprint(*c) || *c == 8 || *c == 9 || *c == 10 || *c == 12 || *c == 13) && (t_len = mblen(c, MAX(2,MB_CUR_MAX))) <= 1) -+ if (!(my_isprint(*c) || *c == 8 || *c == 9 || *c == 10 || *c == 12 || *c == 13 || *c==27) && (t_len = mblen(c, MAX(2,MB_CUR_MAX))) <= 1) ++ if (!(my_isprint(*c) || *c == 8 || *c == 9 || *c == 10 || *c == 12 || *c == 13 || *c == 27) && (t_len = mblen(c, MAX(2,MB_CUR_MAX))) <= 1) *c = '?'; while (--t_len > 0) c++; diff --git a/chinese/tin/files/patch-page.c b/chinese/tin/files/patch-page.c index c9817f56c2b1..9427128928dd 100644 --- a/chinese/tin/files/patch-page.c +++ b/chinese/tin/files/patch-page.c @@ -20,15 +20,6 @@ #endif /* !USE_CURSES */ MoveCursor (i + scroll_region_top, 0); -@@ -918,7 +918,7 @@ - - search_line = curr_line; /* Reset search to start from top of display */ - -- buff = my_malloc(cCOLS + 1); /* Need to account for \n */ -+ buff = my_malloc(LEN + 1); /* Need to account for \n */ - - if (part == 0) { - ClearScreen(); @@ -1364,7 +1364,7 @@ chunk += 50; pgart.rawl = my_realloc((char *) pgart.rawl, sizeof(t_lineinfo) * chunk);