changeset 15208:ae5eb8de9574

[gaim-migrate @ 17998] Stu pointed out that we're writing len elements of size 1, not 1 of size len committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 14 Dec 2006 16:45:42 +0000
parents 5ab90cdee9e5
children ffec45ff82d0
files gtk/gtkconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkconv.c	Thu Dec 14 16:18:49 2006 +0000
+++ b/gtk/gtkconv.c	Thu Dec 14 16:45:42 2006 +0000
@@ -2404,7 +2404,7 @@
 	icon = gaim_conv_im_get_icon(GAIM_CONV_IM(conv));
 	data = gaim_buddy_icon_get_data(icon, &len);
 
-	if ((len <= 0) || (data == NULL) || (fwrite(data, 1, len, fp) != 1)) {
+	if ((len <= 0) || (data == NULL) || (fwrite(data, 1, len, fp) != len)) {
 		gaim_notify_error(gtkconv, NULL, _("Unable to save icon file to disk."), NULL);
 		fclose(fp);
 		g_unlink(filename);