Module Name: xsrc
Committed By: christos
Date: Sun Oct 3 22:10:48 UTC 2010
Modified Files:
xsrc/external/mit/libX11/dist/modules/lc/gen: lcGenConv.c
Log Message:
ifdef out code that truncates the source length to the destination length
if it is larger. Seems useless to do that since the code tests for both
source length and destination to be non-zero. This fixes cut-n-paste problem
in xterm where the paste length was limited to 1024 (BUFSIZ) in button.c
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 \
xsrc/external/mit/libX11/dist/modules/lc/gen/lcGenConv.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/libX11/dist/modules/lc/gen/lcGenConv.c
diff -u xsrc/external/mit/libX11/dist/modules/lc/gen/lcGenConv.c:1.1.1.4 xsrc/external/mit/libX11/dist/modules/lc/gen/lcGenConv.c:1.2
--- xsrc/external/mit/libX11/dist/modules/lc/gen/lcGenConv.c:1.1.1.4 Fri May 21 21:22:19 2010
+++ xsrc/external/mit/libX11/dist/modules/lc/gen/lcGenConv.c Sun Oct 3 18:10:48 2010
@@ -764,8 +764,10 @@
return( 0 );
}
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
while (*from_left && *to_left) {
@@ -921,8 +923,10 @@
int defstr_len = strlen(default_string);
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
while (*from_left && *to_left) {
@@ -1080,8 +1084,10 @@
int from_size = *from_left;
char *ext_seg_len = NULL;
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
while (*from_left && *to_left) {
@@ -1272,8 +1278,10 @@
return( 0 );
}
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
while (*from_left && *to_left) {
@@ -1666,8 +1674,10 @@
return( 0 );
}
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
while (*from_left && *to_left) {
@@ -1784,8 +1794,10 @@
return( 0 );
}
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
while (*from_left && *to_left) {
@@ -1960,8 +1972,10 @@
int defstr_len = strlen(default_string);
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
while (*from_left && *to_left) {
@@ -2117,8 +2131,10 @@
char *outbufptr = *to;
int from_size = *from_left;
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
if (*from_left && *to_left) {
@@ -2430,8 +2446,10 @@
char *outbufptr = *to;
int from_size = *from_left;
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
while (*from_left && *to_left) {
@@ -2540,8 +2558,10 @@
wchar_t *outbufptr = (wchar_t *)*to;
int from_size = *from_left;
+#ifdef notdef
if (*from_left > *to_left)
*from_left = *to_left;
+#endif
while (*from_left && *to_left) {