Mercurial > pidgin.yaz
diff pidgin/gtkutils.c @ 27638: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 | ff18653ef9f4 |
children | e1cd44c7c7af d4036e0f58d6 |
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); } }