From: <ebl...@us...> - 2006-12-14 16:45:43
|
Revision: 17998 http://svn.sourceforge.net/gaim/?rev=17998&view=rev Author: eblanton Date: 2006-12-14 08:45:42 -0800 (Thu, 14 Dec 2006) Log Message: ----------- Stu pointed out that we're writing len elements of size 1, not 1 of size len Modified Paths: -------------- trunk/gtk/gtkconv.c Modified: trunk/gtk/gtkconv.c =================================================================== --- trunk/gtk/gtkconv.c 2006-12-14 16:18:49 UTC (rev 17997) +++ trunk/gtk/gtkconv.c 2006-12-14 16:45:42 UTC (rev 17998) @@ -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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |