I think this is what the fwrite is actually meant to be doing.

Sun, 11 Nov 2007 15:57:35 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sun, 11 Nov 2007 15:57:35 +0000
changeset 21490
ec6b904cf224
parent 21489
fe596e6bc28b
child 21491
73ae9aeda3c5
child 21493
b8d052f19aad
child 21498
580e3f26ad69

I think this is what the fwrite is actually meant to be doing.

libpurple/protocols/gg/gg.c file | annotate | diff | comparison | revisions
--- 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);

mercurial