# HG changeset patch # User Elliott Sales de Andrade # Date 1251077971 0 # Node ID 500d1e80626474e44d89c41f770f130a006a2975 # Parent 9d620811c67cf0d1e87650a0a7125b26b2277c9a 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. diff -r 9d620811c67c -r 500d1e806264 libpurple/protocols/msn/slpcall.c --- a/libpurple/protocols/msn/slpcall.c Sun Aug 23 21:42:12 2009 +0000 +++ b/libpurple/protocols/msn/slpcall.c Mon Aug 24 01:39:31 2009 +0000 @@ -205,7 +205,7 @@ if (slpmsg->session_id == 64) { /* This is for handwritten messages (Ink) */ - GError *error; + GError *error = NULL; gsize bytes_read, bytes_written; body_str = g_convert((const gchar *)body, body_len / 2, @@ -232,7 +232,7 @@ g_free(body_str); body_str = g_convert((const gchar *)body, body_len / 2, - "UTF-8", "UTF16-LE", + "UTF-8", "UTF-16LE", &bytes_read, &bytes_written, &error); if (!body_str) {