From 944a39e9d17b9cd88985553cfb304df6e99a7720 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 21 Nov 2009 02:05:56 +0000 Subject: 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(-) (limited to 'setup') 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); } -- cgit v1.2.3