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>
This commit is contained in:
Xue Wei 2011-10-14 17:39:21 -07:00 committed by Alan Coopersmith
parent 9b8d8c9e5b
commit 002b36e308

View file

@ -1784,9 +1784,6 @@ mbtocs(
return( 0 );
}
if (*from_left > *to_left)
*from_left = *to_left;
while (*from_left && *to_left) {
ch = *inbufptr++;