From 525b4151f088dbc46d6bddddae4991f339527bc4 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 29 May 2013 22:35:58 +0200 Subject: [PATCH] Fixed invalid pointer use. --- tests/modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modes.c b/tests/modes.c index bf941dab..5071a62d 100644 --- a/tests/modes.c +++ b/tests/modes.c @@ -103,7 +103,7 @@ static void list_modes(GLFWmonitor* monitor) { printf("%3u: %s", (unsigned int) i, format_mode(modes + i)); - if (memcmp(&mode, modes + i, sizeof(GLFWvidmode)) == 0) + if (memcmp(mode, modes + i, sizeof(GLFWvidmode)) == 0) printf(" (current mode)"); putchar('\n');