From 06de4b9ed6d8368803eb86db8f4156c4231baa6c Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Mon, 30 Jun 2014 01:59:41 +0100 Subject: [PATCH] Fix crash on wayland with drm-backend --- 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 dbc407f17..0f66c7ba4 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; }