Obvious error in libX11?

Colin Harrison colin.harrison at virgin.net
Thu Nov 6 13:49:55 PST 2008


Hi,

Is this an obvious error in libX11?

--- ./modules/im/ximcp/save_imLcPrs.c	2008-06-19 09:38:45.000000000 +0100
+++ ./modules/im/ximcp/imLcPrs.c	2008-06-22 18:55:49.000000000 +0100
@@ -592,7 +592,7 @@
 
     l = _Xmbstoutf8(local_utf8_buf, rhs_string_mb, LOCAL_UTF8_BUFSIZE - 1);
     if (l == LOCAL_UTF8_BUFSIZE - 1) {
-	local_wc_buf[l] = '\0';
+	local_utf8_buf[l] = '\0';
     }
     while (b->utf8used + l + 1 > b->utf8size) {
 	b->utf8size = b->utf8size ? b->utf8size * 1.5 : 1024;


Thanks

Colin




More information about the xorg mailing list