comparison 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
comparison
equal deleted inserted replaced
21323:eb53ce4852a6 21324:97dc2a474513
279 g_free(msg); 279 g_free(msg);
280 g_free(buddylist); 280 g_free(buddylist);
281 return; 281 return;
282 } 282 }
283 283
284 if (!fwrite(buddylist, sizeof(char), g_utf8_strlen(buddylist, -1), fh)) { 284 if (!fwrite(buddylist, strlen(buddylist), 1, fh)) {
285 const gchar *err = g_strerror(errno); 285 const gchar *err = g_strerror(errno);
286 gchar *title = g_strdup_printf( 286 gchar *title = g_strdup_printf(
287 _("Couldn't write buddylist to %s"), err); 287 _("Couldn't write buddylist to %s"), err);
288 288
289 purple_debug_error("gg", "Error writing %s: %s\n", file, err); 289 purple_debug_error("gg", "Error writing %s: %s\n", file, err);