diff libpurple/protocols/gg/gg.c @ 21324:97dc2a474513

I think this is what the fwrite is actually meant to be doing.
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 11 Nov 2007 15:57:35 +0000
parents d0b16c09c2c4
children 48c6c89a8158
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg.c	Sun Nov 11 14:40:16 2007 +0000
+++ b/libpurple/protocols/gg/gg.c	Sun Nov 11 15:57:35 2007 +0000
@@ -281,7 +281,7 @@
 		return;
 	}
 
-	if (!fwrite(buddylist, sizeof(char), g_utf8_strlen(buddylist, -1), fh)) {
+	if (!fwrite(buddylist, strlen(buddylist), 1, fh)) {
 		const gchar *err = g_strerror(errno);
 		gchar *title = g_strdup_printf(
 			_("Couldn't write buddylist to %s"), err);