diff options
Diffstat (limited to 'gtk/src/plist.c')
-rw-r--r-- | gtk/src/plist.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/src/plist.c b/gtk/src/plist.c index a2429864f..51430cc5b 100644 --- a/gtk/src/plist.c +++ b/gtk/src/plist.c @@ -506,13 +506,12 @@ ghb_plist_write_file(const gchar *filename, GhbValue *gval) { FILE *file; - file = fopen(filename, "w"); + file = g_fopen(filename, "w"); if (file == NULL) return; - fprintf(file, "%s", preamble); - gval_write(file, gval); - fprintf(file, "%s", postfix); + ghb_plist_write(file, gval); + fclose(file); } |