Mercurial > pidgin
changeset 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 | eb53ce4852a6 |
children | d7a43e142c6e 48c6c89a8158 daf85e00658b |
files | libpurple/protocols/gg/gg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);