From 8d1e059403555e7feafdaff788c9e716fcb68ce3 Mon Sep 17 00:00:00 2001 From: Xue Wei Date: Fri, 14 Oct 2011 17:39:21 -0700 Subject: 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 Backported-to-NX-by: Ulrich Sibiller --- nx-X11/lib/X11/lcGenConv.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'nx-X11/lib') diff --git a/nx-X11/lib/X11/lcGenConv.c b/nx-X11/lib/X11/lcGenConv.c index 9dd7e7104..37aca0c25 100644 --- a/nx-X11/lib/X11/lcGenConv.c +++ b/nx-X11/lib/X11/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++; -- cgit v1.2.3