diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-08-19 05:42:22 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-08-19 05:42:22 +0000 |
commit | 68f2dca6e75cc250858092930e2ee001fde8e5ed (patch) | |
tree | 43189d3a704382e8f604b9bdfbd3e6f5ca9f4a93 /capture.c | |
parent | 137ba48d18e0957e5fc920e7b518ba95212789a8 (diff) | |
download | wireshark-68f2dca6e75cc250858092930e2ee001fde8e5ed.tar.gz wireshark-68f2dca6e75cc250858092930e2ee001fde8e5ed.tar.bz2 wireshark-68f2dca6e75cc250858092930e2ee001fde8e5ed.zip |
Use "g_strdup()" rather than "strdup()".
svn path=/trunk/; revision=517
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.56 1999/08/19 05:31:21 guy Exp $ + * $Id: capture.c,v 1.57 1999/08/19 05:42:22 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -342,7 +342,7 @@ capture_prep_ok_cb(GtkWidget *ok_bt, gpointer parent_w) { g_free(cf.save_file); } cf.save_file_fd = create_tempfile(tmpname, sizeof tmpname, "ether"); - cf.save_file = strdup(tmpname); + cf.save_file = g_strdup(tmpname); cf.user_saved = 0; if( fork_mode ){ /* use fork() for capture */ |