# HG changeset patch # User Paul Aurich # Date 1247699460 0 # Node ID a0baa4da321779b01cc7f4f5fe82a3ecd49ab8e4 # Parent aac25c66a843e84e69b51a6a70a40d0307ee028a Use purple_util_write_data_to_file_absolute. Closes #9688. diff -r aac25c66a843 -r a0baa4da3217 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Wed Jul 15 22:41:52 2009 +0000 +++ b/pidgin/gtkutils.c Wed Jul 15 23:11:00 2009 +0000 @@ -3736,10 +3736,9 @@ 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); } }