Mercurial > pidgin
changeset 27562:a0baa4da3217
Use purple_util_write_data_to_file_absolute. Closes #9688.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 15 Jul 2009 23:11:00 +0000 |
parents | aac25c66a843 |
children | 7ca43b2cd132 |
files | pidgin/gtkutils.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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); } }