diff options
Diffstat (limited to 'save-html.c')
-rw-r--r-- | save-html.c | 4 |
1 files changed, 2 insertions, 2 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); |