im.pidgin.pidgin: d6032d7373cdb16eaf775a9ed66aabbc1dfde59b
rlaager at pidgin.im
rlaager at pidgin.im
Sun Jan 13 23:23:28 EST 2008
-----------------------------------------------------------------
Revision: d6032d7373cdb16eaf775a9ed66aabbc1dfde59b
Ancestor: 2f94504ca2351b6dcbdda71216e14994e77ce8dc
Author: rlaager at pidgin.im
Date: 2008-01-13T20:50:53
Branch: im.pidgin.pidgin
Modified files:
pidgin/gtkprefs.c
ChangeLog:
Part of a large patch from o_sukhodolsky to fix some build warnings.
Refs #1344
-------------- next part --------------
============================================================
--- pidgin/gtkprefs.c 8d21736ffc6f9e5ba625cd63474cf5acf3355953
+++ pidgin/gtkprefs.c a41ad490353b23d30b40ff701de096dfa76c5bb6
@@ -478,12 +478,20 @@ theme_got_url(PurpleUtilFetchUrlData *ur
{
FILE *f;
gchar *path;
+ size_t wc;
if ((error_message != NULL) || (len == 0))
return;
f = purple_mkstemp(&path, TRUE);
- fwrite(themedata, len, 1, f);
+ wc = fwrite(themedata, len, 1, f);
+ if (wc != 1) {
+ purple_debug_warning("theme_got_url", "Unable to write theme data.\n");
+ fclose(f);
+ g_unlink(path);
+ g_free(path);
+ return;
+ }
fclose(f);
theme_install_theme(path, user_data);
More information about the Commits
mailing list