summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-12-19 15:00:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-19 07:28:21 -0800
commitfbff6127ac6e4318767bc20c6b0be3051140326a (patch)
tree933e46808667f0723128da3195f89eb87667db99 /save-xml.c
parentf487953ad360b941fe225418cd3e5801d5a6508b (diff)
downloadsubsurface-fbff6127ac6e4318767bc20c6b0be3051140326a.tar.gz
Files: use the new open() wrappers
Adds use of everything from the new wrappers(), but the opendir() one. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c6
1 files changed, 3 insertions, 3 deletions
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);