commit | 704dc3e34d024faf36fd6d4112796686c3fa2804 | [log] [tgz] |
---|---|---|
author | Ricardo Vieira <ricardo.vieira@tecnico.ulisboa.pt> | Mon Jun 30 01:59:41 2014 +0100 |
committer | Camilla Berglund <elmindreda@elmindreda.org> | Tue Jul 01 10:41:32 2014 +0200 |
tree | 2c5bc56a1cd5aa7495e99fb28aac505aff65a570 | |
parent | 3eae79f6e0b79baaff6cacf3f2cbd779fb61c5d9 [diff] |
Fixed crash on Wayland with DRM-backend. Fixes #319. Fixes #301.
diff --git a/src/wl_monitor.c b/src/wl_monitor.c index dbc407f..0f66c7b 100644 --- a/src/wl_monitor.c +++ b/src/wl_monitor.c
@@ -77,7 +77,7 @@ 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; }