summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXue Wei <Wei.Xue@Sun.COM>2011-10-14 17:39:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-14 17:42:45 -0700
commit002b36e308a26a152504f9b40aa08a0dce9a7991 (patch)
tree52143f3e940dc89f04524859047c0ad631834a44
parent9b8d8c9e5b27273e8856a3851ba9b68022bed3cd (diff)
mbtocs should not truncate input
Fixes pasting more than 1024 bytes into xterm, as described in https://bugs.freedesktop.org/show_bug.cgi?id=25209 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--modules/lc/gen/lcGenConv.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/lc/gen/lcGenConv.c b/modules/lc/gen/lcGenConv.c
index 7a113a78..4a3a6fc8 100644
--- a/modules/lc/gen/lcGenConv.c
+++ b/modules/lc/gen/lcGenConv.c
@@ -1784,9 +1784,6 @@ mbtocs(
return( 0 );
}
- if (*from_left > *to_left)
- *from_left = *to_left;
-
while (*from_left && *to_left) {
ch = *inbufptr++;