aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/bootp_stat.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-03-13 14:07:14 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-03-13 14:07:14 +0000
commit17ecbf88d5f732e060318869aa47320dbb51255c (patch)
treefa8942fa430c347cca8134bb8b99f92f579d8610 /gtk/bootp_stat.c
parenteab86116e5878e57305dc3cbf175d16e1e5eb236 (diff)
various string related changes
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10372 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/bootp_stat.c')
-rw-r--r--gtk/bootp_stat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/bootp_stat.c b/gtk/bootp_stat.c
index 9d248917f6..2ae88c996f 100644
--- a/gtk/bootp_stat.c
+++ b/gtk/bootp_stat.c
@@ -1,7 +1,7 @@
/* bootp_stat.c
* boop_stat 2003 Jean-Michel FAYARD
*
- * $Id: bootp_stat.c,v 1.22 2004/02/23 19:19:35 ulfl Exp $
+ * $Id: bootp_stat.c,v 1.23 2004/03/13 14:07:12 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -209,8 +209,7 @@ gtk_dhcpstat_init(char *optarg)
sp = g_malloc( sizeof(dhcpstat_t) );
sp->hash = g_hash_table_new( g_str_hash, g_str_equal);
if(filter){
- sp->filter=g_malloc(strlen(filter)+1);
- strcpy(sp->filter,filter);
+ sp->filter=g_strdup(filter);
title=g_strdup_printf("DHCP statistics with filter: %s", filter);
} else {
sp->filter=NULL;