Merge pull request #32 from Chocobo1/patch

Fix potential out-of-bounds access
pull/29/head
Selva Nair 2016-03-21 11:08:51 -04:00
commit e14764dd7b
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -69,7 +69,7 @@ VerifyAutoConnections()
int i; int i;
BOOL match; 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; int j;
match = FALSE; match = FALSE;