changeset 28108:6b018d1efc5c

Oops, I think it's either sleep or coffee time.
author Paul Aurich <paul@darkrain42.org>
date Fri, 28 Aug 2009 05:35:00 +0000
parents 0a4d0d4cf5df
children 776540f77394 a71a8e7e6bb0 635b28b527a2
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Fri Aug 28 05:27:00 2009 +0000
+++ b/libpurple/util.c	Fri Aug 28 05:35:00 2009 +0000
@@ -4658,7 +4658,7 @@
 		/* Act like g_strdup */
 		return NULL;
 
-	if (g_utf8_validate(str, -1, &bad)) {
+	if (!g_utf8_validate(str, -1, &bad)) {
 		purple_debug_error("util", "purple_utf8_strip_unprintables(%s) failed; "
 		                           "first bad character was %02x (%c)\n",
 		                   str, *bad, *bad);