1
0
Fork 0

monitor-manager-xrandr: Change g_memdup() to g_memdup2()

This was propably overlooked in 30e1c51b33

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1512>
This commit is contained in:
Robert Mader 2021-02-19 19:35:16 +01:00
parent 6eeeffdc68
commit aa6b7ed468

View file

@ -971,8 +971,8 @@ meta_monitor_manager_xrandr_calculate_supported_scales (MetaMonitorManager
ensure_supported_monitor_scales (manager); ensure_supported_monitor_scales (manager);
*n_supported_scales = manager_xrandr->n_supported_scales; *n_supported_scales = manager_xrandr->n_supported_scales;
return g_memdup (manager_xrandr->supported_scales, return g_memdup2 (manager_xrandr->supported_scales,
manager_xrandr->n_supported_scales * sizeof (float)); manager_xrandr->n_supported_scales * sizeof (float));
} }
static MetaMonitorManagerCapability static MetaMonitorManagerCapability