diff options
Diffstat (limited to 'tap-protohierstat.c')
-rw-r--r-- | tap-protohierstat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tap-protohierstat.c b/tap-protohierstat.c index 415c2f0d71..7f897b930a 100644 --- a/tap-protohierstat.c +++ b/tap-protohierstat.c @@ -200,8 +200,7 @@ protohierstat_init(const char *optarg, void* userdata _U_) rs=new_phs_t(NULL); if(filter){ - rs->filter=g_malloc(strlen(filter)+1); - strcpy(rs->filter, filter); + rs->filter=g_strdup(filter); } else { rs->filter=NULL; } |