comparison src/buddyicon.c @ 11021:dd5c802baf7b

[gaim-migrate @ 12892] sf patch #1223464, from Richard Laager "Buddy Icon File Creation Error Logging" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 22 Jun 2005 23:03:07 +0000
parents e8e535ad720b
children 50224ac8184d
comparison
equal deleted inserted replaced
11020:407e47f580e4 11021:dd5c802baf7b
236 if ((file = g_fopen(filename, "wb")) != NULL) 236 if ((file = g_fopen(filename, "wb")) != NULL)
237 { 237 {
238 fwrite(data, 1, len, file); 238 fwrite(data, 1, len, file);
239 fclose(file); 239 fclose(file);
240 } 240 }
241 else
242 {
243 gaim_debug_error("buddy icons", "Unable to create file %s: %s\n",
244 filename, strerror(errno));
245 }
241 246
242 gaim_signal_emit(gaim_buddy_icons_get_handle(), "buddy-icon-cached", 247 gaim_signal_emit(gaim_buddy_icons_get_handle(), "buddy-icon-cached",
243 icon, buddy, filename, old_icon); 248 icon, buddy, filename, old_icon);
244 249
245 g_free(filename); 250 g_free(filename);