summaryrefslogtreecommitdiff
path: root/net/gaim/files/patch-src_gtkimhtml.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/gaim/files/patch-src_gtkimhtml.c')
-rw-r--r--net/gaim/files/patch-src_gtkimhtml.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/gaim/files/patch-src_gtkimhtml.c b/net/gaim/files/patch-src_gtkimhtml.c
new file mode 100644
index 000000000000..9430baae1449
--- /dev/null
+++ b/net/gaim/files/patch-src_gtkimhtml.c
@@ -0,0 +1,22 @@
+--- src/gtkimhtml.c.orig Sun May 30 18:17:14 2004
++++ src/gtkimhtml.c Sun May 30 18:19:47 2004
+@@ -782,7 +782,7 @@
+ if (selection_data->length >= 2 &&
+ (*(guint16 *)text == 0xfeff || *(guint16 *)text == 0xfffe)) {
+ /* This is UCS-2 */
+- char *tmp;
++ /*char *tmp;*/
+ char *utf8 = g_convert(text, selection_data->length, "UTF-8", "UCS-2", NULL, NULL, NULL);
+ g_free(text);
+ text = utf8;
+@@ -790,8 +790,8 @@
+ gaim_debug_warning("gtkimhtml", "g_convert from UCS-2 failed in paste_received_cb\n");
+ return;
+ }
+- tmp = g_utf8_next_char(text);
+- memmove(text, tmp, strlen(tmp) + 1);
++ /*tmp = g_utf8_next_char(text);*/
++ /*memmove(text, tmp, strlen(tmp) + 1);*/
+ }
+
+ if (!(*text) || !g_utf8_validate(text, -1, NULL)) {