libpurple/protocols/qq/im.c

branch
next.minor
changeset 25869
7dbd62851df1
parent 25173
9edc1748a646
parent 25364
aaae94b6ffdf
child 25911
f22097dc8413
--- a/libpurple/protocols/qq/im.c	Thu Jan 08 05:00:02 2009 +0000
+++ b/libpurple/protocols/qq/im.c	Thu Jan 15 22:37:48 2009 +0000
@@ -467,7 +467,10 @@
 	/* qq_show_packet("text", (guint8 *)text, strlen(text)); */
 	g_return_val_if_fail(text != NULL && strlen(text) != 0, g_strdup(""));
 
-	segments = g_strsplit_set(text, "\x14\x15", 0);
+	while ((cur = strchr(text, '\x14')) != NULL)
+		*cur = '\x15';
+
+	segments = g_strsplit(text, "\x15", 0);
 	if(segments == NULL) {
 		return g_strdup("");
 	}

mercurial