From 64a7444adc6d811733582462c1ae89f9d9526531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Wagner?= Date: Wed, 22 Dec 2021 23:03:40 +0100 Subject: fixed deprecated g_memdup --- rest/rest-param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rest') diff --git a/rest/rest-param.c b/rest/rest-param.c index 8ad105f..1f6f73c 100644 --- a/rest/rest-param.c +++ b/rest/rest-param.c @@ -89,7 +89,7 @@ rest_param_new_full (const char *name, param = g_slice_new0 (RestParam); if (use == REST_MEMORY_COPY) { - data = g_memdup (data, length); + data = g_memdup2 (data, length); use = REST_MEMORY_TAKE; } -- cgit v1.2.1