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.
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 {