diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-11-09 00:08:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-11-09 00:08:30 +0000 |
commit | 10843c0ddc6f4549b6dc6f3c2101b5044b52d0b8 (patch) | |
tree | a9e5e0fb0982b596e9f3cebe66acc1c074b0c23b /gtk/file_dlg.c | |
parent | 0ec155cfaf5099a5a1b0ad3a8f650a98f04f265d (diff) | |
download | wireshark-10843c0ddc6f4549b6dc6f3c2101b5044b52d0b8.tar.gz wireshark-10843c0ddc6f4549b6dc6f3c2101b5044b52d0b8.tar.bz2 wireshark-10843c0ddc6f4549b6dc6f3c2101b5044b52d0b8.zip |
From <a.stockmeier[AT]avm.de>: fix the file dialog box code to use
"g_strdup()", not "strdup()" to copy strings.
svn path=/trunk/; revision=4181
Diffstat (limited to 'gtk/file_dlg.c')
-rw-r--r-- | gtk/file_dlg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/file_dlg.c b/gtk/file_dlg.c index 2b621f2ad9..8a769f1da6 100644 --- a/gtk/file_dlg.c +++ b/gtk/file_dlg.c @@ -1,7 +1,7 @@ /* file_dlg.c * Dialog boxes for handling files * - * $Id: file_dlg.c,v 1.43 2001/10/24 07:18:39 guy Exp $ + * $Id: file_dlg.c,v 1.44 2001/11/09 00:08:30 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -564,7 +564,7 @@ file_reload_cmd_cb(GtkWidget *w, gpointer data) { Also, "close_cap_file()" will free "cfile.filename", so we must make a copy of it first. */ - filename = strdup(cfile.filename); + filename = g_strdup(cfile.filename); is_tempfile = cfile.is_tempfile; cfile.is_tempfile = FALSE; if (open_cap_file(filename, is_tempfile, &cfile) == 0) { |