changeset 24544:737bf6236bd3

Compile
author Richard Laager <rlaager@wiktel.com>
date Wed, 26 Nov 2008 22:13:55 +0000
parents a6a6a6c19058
children 8050ea54a83e 414886d7a51c
files libpurple/protocols/zephyr/zephyr.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/zephyr/zephyr.c	Wed Nov 26 21:40:37 2008 +0000
+++ b/libpurple/protocols/zephyr/zephyr.c	Wed Nov 26 22:13:55 2008 +0000
@@ -348,7 +348,7 @@
 	gchar *utf8;
 	GError *err = NULL;
 	zephyr_account *zephyr = gc->proto_data;
-	if (g_utf8_validate(string, len, NULL)) {
+	if (g_utf8_validate(string, -1, NULL)) {
 		return g_strdup(string);
 	} else {
 		utf8 = g_convert(string, -1, "UTF-8", zephyr->encoding, NULL, NULL, &err);
@@ -896,7 +896,7 @@
 #ifndef INET_ADDRSTRLEN
 #define INET_ADDRSTRLEN 16
 #endif
-			if (!purple_conv_chat_find_user(gcc, sendertmp)) {
+			if (!purple_conv_chat_find_user(gcc, stripped_sender)) {
 				gchar ipaddr[INET_ADDRSTRLEN];
 #ifdef HAVE_INET_NTOP
 				inet_ntop(AF_INET, &notice.z_sender_addr.s_addr, ipaddr, sizeof(ipaddr));