From: Stanislav Malyshev Date: Mon, 8 Jan 2001 16:39:39 +0000 (+0000) Subject: Use platform's dir separator X-Git-Tag: php-4.0.5RC1~671 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7984660fc8162b3dccccb0556b1105598966207;p=php Use platform's dir separator --- diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 1adaa2b2e6..88a0888ee0 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -70,7 +70,7 @@ static int _Exec(int type, char *cmd, pval *array, pval *return_value) 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);