diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-03-13 12:09:27 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-03-13 12:09:27 +0000 |
commit | 92b92f632abe99c2b787c668ca7c390890d94e6c (patch) | |
tree | 94c5993010a7ee78c681a0f2c1ca95b912c66d48 /gtk/wsp_stat.c | |
parent | df77a4169038f85a97b86f88a310fea63284acf2 (diff) |
various string related changes, mainly replace sprintf/snprintf by g_snprintf
svn path=/trunk/; revision=10371
Diffstat (limited to 'gtk/wsp_stat.c')
-rw-r--r-- | gtk/wsp_stat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/wsp_stat.c b/gtk/wsp_stat.c index 0f6a84f3e6..45043edcf9 100644 --- a/gtk/wsp_stat.c +++ b/gtk/wsp_stat.c @@ -1,7 +1,7 @@ /* wsp_stat.c * wsp_stat 2003 Jean-Michel FAYARD * - * $Id: wsp_stat.c,v 1.22 2004/02/23 19:19:39 ulfl Exp $ + * $Id: wsp_stat.c,v 1.23 2004/03/13 12:09:27 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -340,8 +340,7 @@ gtk_wspstat_init(char *optarg) sp->num_pdus = 16; sp->pdu_stats=g_malloc( (sp->num_pdus+1) * sizeof( wsp_pdu_t) ); if(filter){ - sp->filter=g_malloc(strlen(filter)+1); - strcpy(sp->filter,filter); + sp->filter=g_strdup(filter); title=g_strdup_printf("Ethereal: WSP statistics with filter: %s", filter); } else { sp->filter=NULL; |