shithub: choc

Download patch

ref: 944a39e9d17b9cd88985553cfb304df6e99a7720
parent: 892ad7c072a6717e8935053d7837a33974d0d824
author: Simon Howard <[email protected]>
date: Fri Nov 20 21:05:56 EST 2009

Use execvp() rather than execv(), to look up Doom binary in the PATH if
necessary.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1735

--- a/setup/execute.c
+++ b/setup/execute.c
@@ -301,7 +301,7 @@
         argv[1] = arg;
         argv[2] = NULL;
 
-        execv(argv[0], (char **) argv);
+        execvp(argv[0], (char **) argv);
 
         exit(-1);
     }