Mercurial > pidgin
diff libpurple/protocols/mxit/protocol.c @ 31635:45d3df336659
When retrieving the users current Status-Message via profile packets,
we need to call g_markup_escape_text() on the text.
| author | andrew.victor@mxit.com |
|---|---|
| date | Mon, 09 May 2011 09:51:33 +0000 |
| parents | 36a569ed9cdb |
| children | 055a33b6bf59 |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c Mon May 09 09:49:06 2011 +0000 +++ b/libpurple/protocols/mxit/protocol.c Mon May 09 09:51:33 2011 +0000 @@ -1763,7 +1763,7 @@ int count; int i; const char* avatarId = NULL; - const char* statusMsg = NULL; + char* statusMsg = NULL; purple_debug_info( MXIT_PLUGIN_ID, "mxit_parse_cmd_extprofile: profile for '%s'\n", mxitId ); @@ -1820,7 +1820,7 @@ } else if ( strcmp( CP_PROFILE_STATUS, fname ) == 0 ) { /* status message - just keep a reference to the value */ - statusMsg = fvalue; + statusMsg = g_markup_escape_text( fvalue, -1 ); } else if ( strcmp( CP_PROFILE_AVATAR, fname ) == 0 ) { /* avatar id - just keep a reference to the value */ @@ -1928,6 +1928,8 @@ g_free( profile ); } } + + g_free( statusMsg ); }
