Commit 8d1e0594 authored by Xue Wei's avatar Xue Wei Committed by Ulrich Sibiller

mbtocs should not truncate input

Fixes pasting more than 1024 bytes into xterm, as described in https://bugs.freedesktop.org/show_bug.cgi?id=25209Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 2f49f62a
......@@ -1784,9 +1784,6 @@ mbtocs(
return( 0 );
}
if (*from_left > *to_left)
*from_left = *to_left;
while (*from_left && *to_left) {
ch = *inbufptr++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment