summaryrefslogtreecommitdiff
path: root/rest
diff options
context:
space:
mode:
authorGünther Wagner <info@gunibert.de>2021-12-22 23:03:40 +0100
committerGünther Wagner <info@gunibert.de>2022-01-12 19:45:23 +0100
commit64a7444adc6d811733582462c1ae89f9d9526531 (patch)
tree189926d91895218525f21c5f8412d7095e5d90db /rest
parent0f7256dee5d3bf47149b9441527b1840916867cf (diff)
downloadlibrest-64a7444adc6d811733582462c1ae89f9d9526531.tar.gz
fixed deprecated g_memdup
Diffstat (limited to 'rest')
-rw-r--r--rest/rest-param.c2
1 files changed, 1 insertions, 1 deletions
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;
}