aboutsummaryrefslogtreecommitdiffstats
path: root/tap-h225counter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tap-h225counter.c')
-rw-r--r--tap-h225counter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tap-h225counter.c b/tap-h225counter.c
index 5e6388b62d..bafc80ba32 100644
--- a/tap-h225counter.c
+++ b/tap-h225counter.c
@@ -363,8 +363,7 @@ h225counter_init(const char *optarg, void* userdata _U_)
}
hs = g_malloc(sizeof(h225counter_t));
- hs->filter=g_malloc(strlen(filter)+1);
- strcpy(hs->filter, filter);
+ hs->filter=g_strdup(filter);
h225counter_reset(hs);