From b415b9aacf2b3816613af1d37bb73c603979e162 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 13 Apr 2015 19:36:51 +0200 Subject: [PATCH] Fixed harmless argument reversal. --- 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 3ed6c973..960bb04c 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -214,7 +214,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count) RROutput primary = XRRGetOutputPrimary(_glfw.x11.display, _glfw.x11.root); - monitors = calloc(sizeof(_GLFWmonitor*), sr->noutput); + monitors = calloc(sr->noutput, sizeof(_GLFWmonitor*)); if (_glfw.x11.xinerama.available) screens = XineramaQueryScreens(_glfw.x11.display, &screenCount);