aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-11-09 00:08:30 +0000
committerGuy Harris <guy@alum.mit.edu>2001-11-09 00:08:30 +0000
commit10843c0ddc6f4549b6dc6f3c2101b5044b52d0b8 (patch)
treea9e5e0fb0982b596e9f3cebe66acc1c074b0c23b /gtk
parent0ec155cfaf5099a5a1b0ad3a8f650a98f04f265d (diff)
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')
-rw-r--r--gtk/file_dlg.c4
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) {