summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2023-05-01 14:10:43 -0400
committerMatt Turner <mattst88@gmail.com>2023-05-01 14:11:06 -0400
commit03c0a105884ab339d94b9a6ce9cd70da5f8aec6d (patch)
treec4dfe84bcf81bf9470123b686504a40e41d88b3a /tests
parent4057f8c84ff8c834dcd1cb82f946dd8cc49712ff (diff)
downloaddconf-03c0a105884ab339d94b9a6ce9cd70da5f8aec6d.tar.gz
tests: Use g_memdup2
../tests/gvdb.c: In function ‘test_corrupted’: ../tests/gvdb.c:364:7: error: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead [-Werror=deprecated-declarations] 364 | copy = g_memdup (orig, length); | ^~~~
Diffstat (limited to 'tests')
-rw-r--r--tests/gvdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gvdb.c b/tests/gvdb.c
index 765f4b8..90f933c 100644
--- a/tests/gvdb.c
+++ b/tests/gvdb.c
@@ -361,7 +361,7 @@ test_corrupted (gconstpointer user_data)
orig = g_mapped_file_get_contents (mapped);
length = g_mapped_file_get_length (mapped);
- copy = g_memdup (orig, length);
+ copy = g_memdup2 (orig, length);
for (i = 0; i < 10000; i++)
{