diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-03-09 14:53:22 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-03-09 14:53:22 +0000 |
commit | 8aad9e58ce6a38fd02ae8dbe7a698c38b4f97a1c (patch) | |
tree | c89a972d0e12405bdf6284407e4d5abf35174683 /gtk/hostlist_table.c | |
parent | b25c60f098912961a5cf6e8fa669d5b26cd0b4e5 (diff) |
Use ws_fopen() [not fopen()] so that a path\filename with
non-ascii charcters will work properly.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27675 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/hostlist_table.c')
-rw-r--r-- | gtk/hostlist_table.c | 4 |
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); |