diff options
-rw-r--r-- | save-html.c | 4 | ||||
-rw-r--r-- | worldmap-save.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/save-html.c b/save-html.c index 212cf2494..501bc21cc 100644 --- a/save-html.c +++ b/save-html.c @@ -191,9 +191,9 @@ void export_HTML(const char *file_name, const bool selected_only) struct membuffer buf = { 0 }; export_list(&buf, selected_only); - f = fopen(file_name, "w+"); + f = subsurface_fopen(file_name, "w+"); if (!f) - printf("error"); /*report error*/ + report_error(translate("gettextFromC", "Can't open file %s"), file_name); flush_buffer(&buf, f); /*check for writing errors? */ free_buffer(&buf); diff --git a/worldmap-save.c b/worldmap-save.c index 0dbc4791f..35a68966f 100644 --- a/worldmap-save.c +++ b/worldmap-save.c @@ -90,9 +90,9 @@ void export_worldmap_HTML(const char *file_name, const bool selected_only) struct membuffer buf = { 0 }; export(&buf, selected_only); - f = fopen(file_name, "w+"); + f = subsurface_fopen(file_name, "w+"); if (!f) - printf("error"); /*report error*/ + report_error(translate("gettextFromC", "Can't open file %s"), file_name); flush_buffer(&buf, f); /*check for writing errors? */ free_buffer(&buf); |