aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/prefs_capture.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2008-04-15 02:21:04 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2008-04-15 02:21:04 +0000
commit82566cb9d05333f0d9ad8994df43d36322a07dbd (patch)
tree29f51945cffa5d6ea3994de0a76704c99036fd14 /gtk/prefs_capture.c
parentaf0fd072243445e49653f077fc41fa4f897041e3 (diff)
don't use strdup() if you want to free the memory later with g_free(), this doesn't work (at least) on MSVC2005 builds!
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25037 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/prefs_capture.c')
-rw-r--r--gtk/prefs_capture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/prefs_capture.c b/gtk/prefs_capture.c
index 5a5009c096..c1442254c7 100644
--- a/gtk/prefs_capture.c
+++ b/gtk/prefs_capture.c
@@ -454,21 +454,21 @@ ifopts_edit_ifsel_cb(GtkWidget *clist _U_,
/* get/display the interface device from current CList */
gtk_clist_get_text(GTK_CLIST(cur_clist), row, 0, &text);
/* is needed, as gtk_entry_set_text() will change text again (bug in GTK?) */
- text = strdup(text);
+ text = g_strdup(text);
gtk_label_set_text(GTK_LABEL(if_dev_lb), text);
g_free(text);
/* get/display the interface name from current CList */
gtk_clist_get_text(GTK_CLIST(cur_clist), row, 1, &text);
/* is needed, as gtk_entry_set_text() will change text again (bug in GTK?) */
- text = strdup(text);
+ text = g_strdup(text);
gtk_label_set_text(GTK_LABEL(if_name_lb), text);
g_free(text);
/* get/display the interface description from current CList */
gtk_clist_get_text(GTK_CLIST(cur_clist), row, 2, &text);
/* is needed, as gtk_entry_set_text() will change text again (bug in GTK?) */
- text = strdup(text);
+ text = g_strdup(text);
gtk_entry_set_text(GTK_ENTRY(if_descr_te), text);
g_free(text);