diff --git a/src/wl_monitor.c b/src/wl_monitor.c index dbc407f1..0f66c7ba 100644 --- a/src/wl_monitor.c +++ b/src/wl_monitor.c @@ -77,7 +77,7 @@ static void mode(void* data, int size = monitor->wl.modesSize * 2; _GLFWvidmodeWayland* modes = realloc(monitor->wl.modes, - monitor->wl.modesSize * sizeof(_GLFWvidmodeWayland)); + size * sizeof(_GLFWvidmodeWayland)); monitor->wl.modes = modes; monitor->wl.modesSize = size; }