Skip to content

Commit

Permalink
Don't limit config file names to a length > 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Impact123 committed Nov 3, 2017
1 parent 989ebb1 commit 11253ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoexecconfig.inc
Expand Up @@ -304,7 +304,7 @@ stock static int AutoExecConfig_FormatFileName(char[] buffer, int size, char[] f


// Can't be an cfgfile
if (StrContains(g_sConfigFile, ".cfg") == -1 && strlen(g_sConfigFile) < 4)
if (StrContains(g_sConfigFile, ".cfg") != -1 && strlen(g_sConfigFile) < 4)
{
return AUTOEXEC_FORMAT_BAD_FILENAME;
}
Expand Down

0 comments on commit 11253ba

Please sign in to comment.