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-sctpchunkstat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tap-sctpchunkstat.c') diff --git a/tap-sctpchunkstat.c b/tap-sctpchunkstat.c index de060d53fd..630d4f4c91 100644 --- a/tap-sctpchunkstat.c +++ b/tap-sctpchunkstat.c @@ -233,10 +233,9 @@ sctpstat_init(const char *optarg, void* userdata _U_) } hs = g_malloc(sizeof(sctpstat_t)); - hs->filter=g_malloc(strlen(filter)+1); + hs->filter=g_strdup(filter); hs->ep_list = NULL; hs->number_of_packets = 0; - strcpy(hs->filter, filter); sctpstat_reset(hs); -- cgit v1.2.3