commit 944a39e9d17b9cd88985553cfb304df6e99a7720
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Nov 21 02:05:56 2009 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Sat Nov 21 02:05:56 2009 +0000
Use execvp() rather than execv(), to look up Doom binary in the PATH if
necessary.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1735
---
setup/execute.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup/execute.c b/setup/execute.c
index fb9885fa..8c4580e8 100644
--- a/setup/execute.c
+++ b/setup/execute.c
@@ -301,7 +301,7 @@ static int ExecuteCommand(const char *program, const char *arg)
argv[1] = arg;
argv[2] = NULL;
- execv(argv[0], (char **) argv);
+ execvp(argv[0], (char **) argv);
exit(-1);
}