start.exe: build_args now returns the correct string when no parameter

is passed.
This commit is contained in:
Fatih Aşıcı 2006-02-01 13:50:52 +01:00 committed by Alexandre Julliard
parent a8ef244b89
commit 1c9e1f3473
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ static char *build_args( int argc, char **argv )
for (i = 0; i < argc; i++ )
len += strlen(argv[i]) + 1;
ret = HeapAlloc( GetProcessHeap(), 0, len );
ret[0] = 0;
for (i = 0, p = ret; i < argc; i++ )
p += sprintf(p, " %s", argv[i]);