[PATCH:libX11] mbtocs should not truncate input

Alan Coopersmith alan.coopersmith at oracle.com
Fri Oct 14 17:46:44 PDT 2011


From: Xue Wei <Wei.Xue at Sun.COM>

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 at oracle.com>
---

This patch has been included in Solaris libX11 since January 2009, but
missed getting upstreamed when the responsible engineer left the company.

 modules/lc/gen/lcGenConv.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/modules/lc/gen/lcGenConv.c b/modules/lc/gen/lcGenConv.c
index 7a113a7..4a3a6fc 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++;
-- 
1.7.3.2



More information about the xorg-devel mailing list