Mercurial > pidgin
diff libpurple/protocols/qq/char_conv.c @ 23049:190bc4ecf6c3
patch-03-add-qq_hex_dump
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Tue, 24 Jun 2008 12:09:16 +0000 |
parents | 9a5d140400f1 |
children | 51dbe83ebbd3 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/char_conv.c Tue Jun 24 11:58:57 2008 +0000 +++ b/libpurple/protocols/qq/char_conv.c Tue Jun 24 12:09:16 2008 +0000 @@ -114,10 +114,12 @@ if (error == NULL) return ret; /* conversion is OK */ else { /* conversion error */ - gchar *failed = hex_dump_to_str((guint8 *) str, (len == -1) ? strlen(str) : len); purple_debug(PURPLE_DEBUG_ERROR, "QQ", "%s\n", error->message); - purple_debug(PURPLE_DEBUG_WARNING, "QQ", "Dump failed text\n%s", failed); - g_free(failed); + + qq_hex_dump(PURPLE_DEBUG_WARNING, "QQ", + (guint8 *) str, (len == -1) ? strlen(str) : len, + "Dump failed text"); + g_error_free(error); return g_strdup(QQ_NULL_MSG); }