search for /TIMEOUT= only at the beginning of the input string

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4369 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-11-05 13:39:57 +00:00
parent 90919b0ea6
commit 60026493e7

View file

@ -151,7 +151,7 @@ void ExecScript(int log) {
params:
popstring(pExec);
if (my_strstr(pExec, "/TIMEOUT=")) {
if (my_strstr(pExec, "/TIMEOUT=") == pExec) {
char *szTimeout = pExec + 9;
g_to = my_atoi(szTimeout);
goto params;