diff options
author | Gerald Combs <gerald@wireshark.org> | 2002-05-23 15:56:05 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2002-05-23 15:56:05 +0000 |
commit | ae64e9539cdad9ce375818769bcc86881e2f7496 (patch) | |
tree | 9147795edca2f131f2d2bb706a85f23cb4791730 /gtk/capture_prefs.c | |
parent | 96da8b00b76598fc6a59290bb98e9d0129692ed0 (diff) |
Save the whole capture device name in the preferences file. Under
Windows, this saves the description + device name.
svn path=/trunk/; revision=5534
Diffstat (limited to 'gtk/capture_prefs.c')
-rw-r--r-- | gtk/capture_prefs.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gtk/capture_prefs.c b/gtk/capture_prefs.c index 7dbf6ccbff..5895997b70 100644 --- a/gtk/capture_prefs.c +++ b/gtk/capture_prefs.c @@ -1,7 +1,7 @@ /* capture_prefs.c * Dialog box for capture preferences * - * $Id: capture_prefs.c,v 1.9 2002/03/05 11:55:58 guy Exp $ + * $Id: capture_prefs.c,v 1.10 2002/05/23 15:56:05 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -138,12 +138,9 @@ capture_prefs_fetch(GtkWidget *w) g_free(prefs.capture_device); prefs.capture_device = NULL; } - if_text = - g_strdup(gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(if_cb)->entry))); - if_name = strtok(if_text, " \t"); - if (if_name != NULL) - prefs.capture_device = g_strdup(if_name); - g_free(if_text); + + if_text = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(if_cb)->entry)); + prefs.capture_device = g_strdup(if_text); prefs.capture_prom_mode = GTK_TOGGLE_BUTTON (promisc_cb)->active; |