summaryrefslogtreecommitdiffstats
path: root/worldmap-save.c
diff options
context:
space:
mode:
Diffstat (limited to 'worldmap-save.c')
-rw-r--r--worldmap-save.c4
1 files changed, 2 insertions, 2 deletions
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);