From 8eac50fadd87c95edff5e529b40f892bdf348804 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 20 Mar 2016 19:04:03 +0800 Subject: [PATCH] Fix potential out-of-bounds access --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 3177cde..f80e620 100644 --- a/main.c +++ b/main.c @@ -69,7 +69,7 @@ VerifyAutoConnections() int i; BOOL match; - for (i = 0; o.auto_connect[i] != 0 && i < MAX_CONFIGS; i++) + for (i = 0; i < MAX_CONFIGS && o.auto_connect[i] != 0; i++) { int j; match = FALSE;