diff options
Diffstat (limited to 'tap-h225rassrt.c')
-rw-r--r-- | tap-h225rassrt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tap-h225rassrt.c b/tap-h225rassrt.c index 97ad22883f..385ccc4cf0 100644 --- a/tap-h225rassrt.c +++ b/tap-h225rassrt.c @@ -226,8 +226,7 @@ h225rassrt_init(const char *optarg, void* userdata _U_) } hs = g_malloc(sizeof(h225rassrt_t)); - hs->filter=g_malloc(strlen(filter)+1); - strcpy(hs->filter, filter); + hs->filter=g_strdup(filter); h225rassrt_reset(hs); |