summaryrefslogtreecommitdiff
path: root/gtk/hostlist_table.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-03-09 14:53:22 +0000
committerBill Meier <wmeier@newsguy.com>2009-03-09 14:53:22 +0000
commit292cc21bb02401cc4d4201dde82aff346f691aad (patch)
treec89a972d0e12405bdf6284407e4d5abf35174683 /gtk/hostlist_table.c
parent8a651ee15c0af2197706542fba782aebac495d8f (diff)
downloadwireshark-292cc21bb02401cc4d4201dde82aff346f691aad.tar.gz
Use ws_fopen() [not fopen()] so that a path\filename with
non-ascii charcters will work properly. svn path=/trunk/; revision=27675
Diffstat (limited to 'gtk/hostlist_table.c')
-rw-r--r--gtk/hostlist_table.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/hostlist_table.c b/gtk/hostlist_table.c
index b847fe3f4d..410afab0c0 100644
--- a/gtk/hostlist_table.c
+++ b/gtk/hostlist_table.c
@@ -45,6 +45,8 @@
#include <epan/filesystem.h>
#endif
+#include <wsutil/file_util.h>
+
#include "../simple_dialog.h"
#include "../globals.h"
#include "../color.h"
@@ -642,7 +644,7 @@ open_as_map_cb(GtkWindow *copy_bt, gpointer data _U_)
/* open the TSV output file */
/* XXX - add error handling */
file_path = get_tempfile_path("ipmap.txt");
- out_file = fopen(file_path, "w+b");
+ out_file = ws_fopen(file_path, "w+b");
if(out_file == NULL) {
open_failure_alert_box(file_path, errno, TRUE);
g_free(file_path);