pidgin: 2c6c8b37: Use purple_util_write_data_to_file_absol...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Wed Jul 15 22:25:39 EDT 2009


-----------------------------------------------------------------
Revision: 2c6c8b3766205a61d7f3b2b0cc8d611043422e3f
Ancestor: e2bd1ca5e990f4f054c74681fd5bdd815c0ff7fe
Author: darkrain42 at pidgin.im
Date: 2009-07-15T23:11:00
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2c6c8b3766205a61d7f3b2b0cc8d611043422e3f

Modified files:
        pidgin/gtkutils.c

ChangeLog: 

Use purple_util_write_data_to_file_absolute. Closes #9688.

-------------- next part --------------
============================================================
--- pidgin/gtkutils.c	e60a46ccf1a319be32da76edfa262d238c8bfc3e
+++ pidgin/gtkutils.c	d5ad48e7bc73be72da53753acf30e558c0213696
@@ -3736,10 +3736,9 @@ savefile_write_cb(gpointer user_data, ch
 		return;
 	}
 
-	if (!g_file_set_contents(file, contents, length, &error)) {
-		purple_debug_error("gtkutils", "Unable to write contents to %s: %s\n",
-		                   file, error->message);
-		g_error_free(error);
+	if (!purple_util_write_data_to_file_absolute(file, contents, length)) {
+		purple_debug_error("gtkutils", "Unable to write contents to %s\n",
+		                   file);
 	}
 }
 


More information about the Commits mailing list