Module: wine Branch: master Commit: 7cf307a7bd208a5c194808f71a86b173c6dd2d59 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7cf307a7bd208a5c194808f71a...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Sat Feb 11 18:24:55 2012 +0100
cmd: Reuse common string constants.
---
programs/cmd/builtins.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index a02aa78..d966dc6 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -2477,7 +2477,6 @@ void WCMD_shift (const WCHAR *command) { */ void WCMD_start(const WCHAR *command) { - static const WCHAR spaceW[] = {' ',0}; static const WCHAR exeW[] = {'\','c','o','m','m','a','n','d', '\','s','t','a','r','t','.','e','x','e',0}; WCHAR file[MAX_PATH]; @@ -2489,7 +2488,7 @@ void WCMD_start(const WCHAR *command) strcatW( file, exeW ); cmdline = HeapAlloc( GetProcessHeap(), 0, (strlenW(file) + strlenW(command) + 2) * sizeof(WCHAR) ); strcpyW( cmdline, file ); - strcatW( cmdline, spaceW ); + strcatW( cmdline, space ); strcatW( cmdline, command );
memset( &st, 0, sizeof(STARTUPINFOW) );