diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2021-04-28 16:39:46 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-04-28 16:39:46 +0200 |
commit | d841e741994f3db2bbdef4a0e1c68542d6ca2887 (patch) | |
tree | 694dd14ca2e2d6f0c2b43b229cdbae7570398695 /tools | |
parent | dbbbebf92d786b089508b70f87532613a3f76a03 (diff) | |
download | ofono-d841e741994f3db2bbdef4a0e1c68542d6ca2887.tar.gz |
treewide: Replace g_memdup with g_memdup2
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; |