From fbff6127ac6e4318767bc20c6b0be3051140326a Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 19 Dec 2013 15:00:51 +0200 Subject: Files: use the new open() wrappers Adds use of everything from the new wrappers(), but the opendir() one. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- save-xml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'save-xml.c') diff --git a/save-xml.c b/save-xml.c index 40aa9cb94..7edfb9677 100644 --- a/save-xml.c +++ b/save-xml.c @@ -578,7 +578,7 @@ void save_dives_logic(const char *filename, const bool select_only) struct dive *dive; dive_trip_t *trip; - FILE *f = fopen(filename, "w"); + FILE *f = subsurface_fopen(filename, "w"); if (!f) return; @@ -639,7 +639,7 @@ void export_dives_uddf(const char *filename, const bool selected) /* Save XML to file and convert it into a memory buffer */ save_dives_logic(filename, selected); - f = fopen(filename, "r"); + f = subsurface_fopen(filename, "r"); fseek(f, 0, SEEK_END); streamsize = ftell(f); rewind(f); @@ -677,7 +677,7 @@ void export_dives_uddf(const char *filename, const bool selected) xmlFreeDoc(doc); /* Write the transformed XML to file */ - f = fopen(filename, "w"); + f = subsurface_fopen(filename, "w"); xmlDocFormatDump(f, transformed, 1); xmlFreeDoc(transformed); -- cgit v1.2.3-70-g09d2