src/protocols/irc/parse.c

changeset 11726
6f319ff4cea5
parent 11318
13fa1d5134f3
child 11972
23ac6d9de1fa
--- a/src/protocols/irc/parse.c	Sat Oct 22 22:38:00 2005 +0000
+++ b/src/protocols/irc/parse.c	Sat Oct 22 22:58:16 2005 +0000
@@ -251,10 +251,10 @@
 			charset++;
 
 		if (!strcasecmp("UTF-8", charset)) {
-			if (g_utf8_validate(string, strlen(string), NULL))
+			if (g_utf8_validate(string, -1, NULL))
 				utf8 = g_strdup(string);
 		} else {
-			utf8 = g_convert(string, strlen(string), "UTF-8", charset, NULL, NULL, NULL);
+			utf8 = g_convert(string, -1, "UTF-8", charset, NULL, NULL, NULL);
 		}
 
 		if (utf8) {

mercurial