cvs: TSRM(PHP_5_2) / tsrm_win32.c

From: Date: Fri, 06 Jun 2008 23:05:37 +0000
Subject: cvs: TSRM(PHP_5_2) / tsrm_win32.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6786@lists.php.net to get a copy of this message
scottmac Fri Jun 6 23:05:37 2008 UTC Modified files: (Branch: PHP_5_2) /TSRM tsrm_win32.c Log: Backout fix for spaces in both the program name and argument name, this will be fixed in PHP 5.3+ only http://cvs.php.net/viewvc.cgi/TSRM/tsrm_win32.c?r1=1.27.2.1.2.9&r2=1.27.2.1.2.10&diff_format=u Index: TSRM/tsrm_win32.c diff -u TSRM/tsrm_win32.c:1.27.2.1.2.9 TSRM/tsrm_win32.c:1.27.2.1.2.10 --- TSRM/tsrm_win32.c:1.27.2.1.2.9 Thu May 29 11:41:50 2008 +++ TSRM/tsrm_win32.c Fri Jun 6 23:05:37 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tsrm_win32.c,v 1.27.2.1.2.9 2008/05/29 11:41:50 scottmac Exp $ */ +/* $Id: tsrm_win32.c,v 1.27.2.1.2.10 2008/06/06 23:05:37 scottmac Exp $ */ #include <stdio.h> #include <fcntl.h> @@ -217,8 +217,8 @@ startup.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE); } - cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2); - sprintf(cmd, "%s /c \"%s\"", TWG(comspec), command); + cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")); + sprintf(cmd, "%s /c %s", TWG(comspec), command); if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, env, cwd, &startup, &process)) { return NULL; }

« previous php.zend-engine.cvs (#6786) next »