[librest/gwagner/deprecated: 5/10] fixed deprecated g_memdup
- From: Günther Wagner <gwagner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/gwagner/deprecated: 5/10] fixed deprecated g_memdup
- Date: Tue, 28 Dec 2021 18:40:02 +0000 (UTC)
commit e62afcefdc91765bd4ddefc3cdfe5c42499fd055
Author: Günther Wagner <info gunibert de>
Date: Wed Dec 22 23:03:40 2021 +0100
fixed deprecated g_memdup
rest/rest-param.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]