From 47d744b59da83744623bea39c006eb7e2ec02de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Sun, 3 Feb 2008 15:38:20 +0000 Subject: More rewrite of prohibited APIs (sprintf, strcpy, strcat). svn path=/trunk/; revision=24258 --- tap-mgcpstat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tap-mgcpstat.c') 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;irtd[i].num=0; -- cgit v1.2.3