So apparently, I messed up the name of this charset. But I wonder why it
authorElliott Sales de Andrade <qulogic@pidgin.im>
Mon, 24 Aug 2009 01:39:31 +0000
changesetb579df23a255 pushlog
parent b225a3e3b0a6
child 1e90cf295fbf
So apparently, I messed up the name of this charset. But I wonder why it
never crashed when I tested it. Also, GError's hate when you overwrite
them, so initialize error to NULL.

Fixes #10048.
libpurple/protocols/msn/slpcall.c
      1.1 --- a/libpurple/protocols/msn/slpcall.c
      1.2 +++ b/libpurple/protocols/msn/slpcall.c
      1.3 @@ -205,7 +205,7 @@
      1.4  		if (slpmsg->session_id == 64)
      1.5  		{
      1.6  			/* This is for handwritten messages (Ink) */
      1.7 -			GError *error;
      1.8 +			GError *error = NULL;
      1.9  			gsize bytes_read, bytes_written;
     1.10  
     1.11  			body_str = g_convert((const gchar *)body, body_len / 2,
     1.12 @@ -232,7 +232,7 @@
     1.13  			g_free(body_str);
     1.14  
     1.15  			body_str = g_convert((const gchar *)body, body_len / 2,
     1.16 -			                     "UTF-8", "UTF16-LE",
     1.17 +			                     "UTF-8", "UTF-16LE",
     1.18  			                     &bytes_read, &bytes_written, &error);
     1.19  			if (!body_str)
     1.20  			{