Index: ext/standard/proc_open.c =================================================================== RCS file: /repository/php-src/ext/standard/proc_open.c,v retrieving revision 1.36.2.1.2.8 diff -u -p -d -r1.36.2.1.2.8 proc_open.c --- ext/standard/proc_open.c 9 Jan 2007 16:27:17 -0000 1.36.2.1.2.8 +++ ext/standard/proc_open.c 13 Feb 2007 14:28:55 -0000 @@ -276,7 +276,7 @@ static int php_make_safe_mode_command(ch sep = zend_memrchr(arg0, PHP_DIR_SEPARATOR, larg0); - spprintf(safecmd, 0, \"%s%c%s%s\", PG(safe_mode_exec_dir), (sep ? *sep : \'/\'), (sep ? \"\" : arg0), (space ? cmd + larg0 : \"\")); + spprintf(safecmd, 0, \"%s%s%s%s\", PG(safe_mode_exec_dir), (sep ? sep : \"/\"), (sep ? \"\" : arg0), (space ? cmd + larg0 : \"\")); efree(arg0); arg0 = php_escape_shell_cmd(*safecmd);