diff options
author | Simon Howard | 2009-11-21 02:05:56 +0000 |
---|---|---|
committer | Simon Howard | 2009-11-21 02:05:56 +0000 |
commit | 944a39e9d17b9cd88985553cfb304df6e99a7720 (patch) | |
tree | bb783db2f19aabc6e0fd8774acbe1f906301d3a6 /setup | |
parent | 892ad7c072a6717e8935053d7837a33974d0d824 (diff) | |
download | chocolate-doom-944a39e9d17b9cd88985553cfb304df6e99a7720.tar.gz chocolate-doom-944a39e9d17b9cd88985553cfb304df6e99a7720.tar.bz2 chocolate-doom-944a39e9d17b9cd88985553cfb304df6e99a7720.zip |
Use execvp() rather than execv(), to look up Doom binary in the PATH if
necessary.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1735
Diffstat (limited to 'setup')
-rw-r--r-- | setup/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |