libpurple/protocols/mxit/multimx.c

branch
release-2.x.y
changeset 37814
f6c08d962618
parent 33844
e8edfd4e26ae
child 37901
41e45e18f3b2
--- a/libpurple/protocols/mxit/multimx.c	Sun May 15 05:41:39 2016 -0300
+++ b/libpurple/protocols/mxit/multimx.c	Thu Jun 02 16:11:43 2016 -0500
@@ -360,7 +360,7 @@
 		unsigned int i;
 
 		for (i = 1; i < strlen(msg); i++) {		/* search for end of nickname */
-			if (msg[i] == '>') {
+			if ((msg[i] == '>') && (msg[i+1] == '\n')) {
 				msg[i] = '\0';
 				g_free(mx->from);
 				mx->from = g_strdup(&msg[1]);

mercurial