cvs: php4 /ext/standard exec.c
| From: | Stanislav Malyshev | Date: | Mon, 08 Jan 2001 16:39:40 +0000 |
| Subject: | cvs: php4 /ext/standard exec.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3468@lists.php.net to get a copy of this message | ||
stas Mon Jan 8 08:39:40 2001 EDT
Modified files:
/php4/ext/standard exec.c
Log:
Use platform's dir separator
Index: php4/ext/standard/exec.c
diff -u php4/ext/standard/exec.c:1.43 php4/ext/standard/exec.c:1.44
--- php4/ext/standard/exec.c:1.43 Wed Dec 13 15:40:44 2000
+++ php4/ext/standard/exec.c Mon Jan 8 08:39:39 2001
@@ -15,7 +15,7 @@
| Author: Rasmus Lerdorf |
+----------------------------------------------------------------------+
*/
-/* $Id: exec.c,v 1.43 2000/12/13 23:40:44 zeev Exp $ */
+/* $Id: exec.c,v 1.44 2001/01/08 16:39:39 stas Exp $ */
#include <stdio.h>
#include "php.h"
@@ -70,7 +70,7 @@
d = emalloc(l);
strcpy(d, PG(safe_mode_exec_dir));
overflow_limit -= ldir;
- b = strrchr(cmd, '/');
+ b = strrchr(cmd, PHP_DIR_SEPARATOR);
if (b) {
strcat(d, b);
overflow_limit -= strlen(b);