diff libpurple/protocols/myspace/message.c @ 17935:3aed9c8c6af7

Fix bug where string returned from msim_msg_get_string() is not a new string if the data type is a string (oops). This fixes the get info crash on Windows.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Thu, 05 Jul 2007 00:29:25 +0000
parents d87916bd1d73
children 231b87b76da4
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.c	Wed Jul 04 22:48:52 2007 +0000
+++ b/libpurple/protocols/myspace/message.c	Thu Jul 05 00:29:25 2007 +0000
@@ -834,7 +834,7 @@
 
 		case MSIM_TYPE_STRING:
 			/* Already unescaped. */
-			return (gchar *)elem->data;
+			return g_strdup((gchar *)elem->data);
 
 		default:
 			purple_debug_info("msim", "msim_msg_get_string: type %d unknown, name %s\n",