diff options
author | Xue Wei <Wei.Xue@Sun.COM> | 2011-10-14 17:39:21 -0700 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:25 +0200 |
commit | 8d1e059403555e7feafdaff788c9e716fcb68ce3 (patch) | |
tree | 3b80b13874c8ce41911a6cee20d8c22117a2a0d3 /nx-X11 | |
parent | 2f49f62a81c51582509bd6abab27b72eb0a29b1f (diff) | |
download | nx-libs-8d1e059403555e7feafdaff788c9e716fcb68ce3.tar.gz nx-libs-8d1e059403555e7feafdaff788c9e716fcb68ce3.tar.bz2 nx-libs-8d1e059403555e7feafdaff788c9e716fcb68ce3.zip |
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>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/lib/X11/lcGenConv.c | 3 |
1 files changed, 0 insertions, 3 deletions
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++; |