diff options
Diffstat (limited to 'tap-camelcounter.c')
-rw-r--r-- | tap-camelcounter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tap-camelcounter.c b/tap-camelcounter.c index fa489c1ace..0368465bcd 100644 --- a/tap-camelcounter.c +++ b/tap-camelcounter.c @@ -104,8 +104,7 @@ static void camelcounter_init(const char *optarg, void* userdata _U_) p_camelcounter = g_malloc(sizeof(struct camelcounter_t)); if(filter){ - p_camelcounter->filter=g_malloc(strlen(filter)+1); - strcpy(p_camelcounter->filter,filter); + p_camelcounter->filter=g_strdup(filter); } else { p_camelcounter->filter=NULL; } |