From 704dc3e34d024faf36fd6d4112796686c3fa2804 Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Mon, 30 Jun 2014 01:59:41 +0100 Subject: [PATCH] Fixed crash on Wayland with DRM-backend. Fixes #319. Fixes #301. --- src/wl_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }