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:
parent
6eeeffdc68
commit
aa6b7ed468
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue