diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/stktest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/stktest.c b/tools/stktest.c index c83d4839..5863bc5e 100644 --- a/tools/stktest.c +++ b/tools/stktest.c @@ -3375,9 +3375,9 @@ static void stktest_add_test(const char *name, const char *method, test->name = g_strdup(name); test->method = g_strdup(method); - test->req_pdu = g_memdup(req, req_len); + test->req_pdu = g_memdup2(req, req_len); test->req_len = req_len; - test->rsp_pdu = g_memdup(rsp, rsp_len); + test->rsp_pdu = g_memdup2(rsp, rsp_len); test->rsp_len = rsp_len; test->agent_func = agent_func; test->tr_func = tr_func; |