[mutter] monitor-manager-xrandr: Change g_memdup() to g_memdup2()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-manager-xrandr: Change g_memdup() to g_memdup2()
- Date: Mon, 22 Feb 2021 13:48:16 +0000 (UTC)
commit aa6b7ed468acedee4138d005ab5ea3baf596aa0e
Author: Robert Mader <robert mader posteo de>
Date: Fri Feb 19 19:35:16 2021 +0100
monitor-manager-xrandr: Change g_memdup() to g_memdup2()
This was propably overlooked in 30e1c51b33eabba3e233293d66648903e2a6d65d
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1512>
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 c49be6c13d..489a9b4241 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]