aboutsummaryrefslogtreecommitdiffstats
path: root/tap-mgcpstat.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-mgcpstat.c
parente59b5d6b8a963263b0c2dcf163e07b4318737d71 (diff)
More rewrite of prohibited APIs (sprintf, strcpy, strcat).
svn path=/trunk/; revision=24258
Diffstat (limited to 'tap-mgcpstat.c')
-rw-r--r--tap-mgcpstat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tap-mgcpstat.c b/tap-mgcpstat.c
index 5d5d96236f..967f9d9260 100644
--- a/tap-mgcpstat.c
+++ b/tap-mgcpstat.c
@@ -195,8 +195,7 @@ mgcpstat_init(const char *optarg, void* userdata _U_)
}
ms=g_malloc(sizeof(mgcpstat_t));
- ms->filter=g_malloc(strlen(filter)+1);
- strcpy(ms->filter, filter);
+ ms->filter=g_strdup(filter);
for(i=0;i<NUM_TIMESTATS;i++) {
ms->rtd[i].num=0;