From 60026493e7527a09cedfb65479fea945894347b8 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 5 Nov 2005 13:39:57 +0000 Subject: [PATCH] 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 --- Contrib/nsExec/nsexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contrib/nsExec/nsexec.c b/Contrib/nsExec/nsexec.c index c4424393..028312dd 100644 --- a/Contrib/nsExec/nsexec.c +++ b/Contrib/nsExec/nsexec.c @@ -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;