aboutsummaryrefslogtreecommitdiffstats
path: root/tap-httpstat.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-02-03 15:38:20 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-02-03 15:38:20 +0000
commit47d744b59da83744623bea39c006eb7e2ec02de9 (patch)
tree17d9ec1526a37c793ee3d7cbd031091d1867dd7f /tap-httpstat.c
parente59b5d6b8a963263b0c2dcf163e07b4318737d71 (diff)
More rewrite of prohibited APIs (sprintf, strcpy, strcat).
svn path=/trunk/; revision=24258
Diffstat (limited to 'tap-httpstat.c')
-rw-r--r--tap-httpstat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tap-httpstat.c b/tap-httpstat.c
index 073a35d925..7a611a9587 100644
--- a/tap-httpstat.c
+++ b/tap-httpstat.c
@@ -295,8 +295,7 @@ gtk_httpstat_init(const char *optarg,void* userdata _U_)
sp = g_malloc( sizeof(httpstat_t) );
if(filter){
- sp->filter=g_malloc(strlen(filter)+1);
- strcpy(sp->filter,filter);
+ sp->filter=g_strdup(filter);
} else {
sp->filter=NULL;
}