From 8c069f3753b7fed878c58072e9d4611d7ee7e0fe Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 9 Jun 2013 12:18:07 +0200 Subject: [PATCH] Fixed use of wrong variable. --- src/x11_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11_monitor.c b/src/x11_monitor.c index dbd50463..a5bac66d 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -177,7 +177,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* found) sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); primary = XRRGetOutputPrimary(_glfw.x11.display, _glfw.x11.root); - monitors = (_GLFWmonitor**) calloc(sr->noutput, sizeof(_GLFWmonitor*)); + monitors = (_GLFWmonitor**) calloc(sr->ncrtc, sizeof(_GLFWmonitor*)); for (i = 0; i < sr->ncrtc; i++) {