From aa6b7ed468acedee4138d005ab5ea3baf596aa0e Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Fri, 19 Feb 2021 19:35:16 +0100 Subject: [PATCH] monitor-manager-xrandr: Change g_memdup() to g_memdup2() This was propably overlooked in 30e1c51b33eabba3e233293d66648903e2a6d65d Part-of: --- src/backends/x11/meta-monitor-manager-xrandr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/x11/meta-monitor-manager-xrandr.c b/src/backends/x11/meta-monitor-manager-xrandr.c index c49be6c13..489a9b424 100644 --- a/src/backends/x11/meta-monitor-manager-xrandr.c +++ b/src/backends/x11/meta-monitor-manager-xrandr.c @@ -971,8 +971,8 @@ meta_monitor_manager_xrandr_calculate_supported_scales (MetaMonitorManager ensure_supported_monitor_scales (manager); *n_supported_scales = manager_xrandr->n_supported_scales; - return g_memdup (manager_xrandr->supported_scales, - manager_xrandr->n_supported_scales * sizeof (float)); + return g_memdup2 (manager_xrandr->supported_scales, + manager_xrandr->n_supported_scales * sizeof (float)); } static MetaMonitorManagerCapability