From c7984660fc8162b3dccccb0556b1105598966207 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 8 Jan 2001 16:39:39 +0000 Subject: [PATCH] Use platform's dir separator --- ext/standard/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0