david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[cmdline] Do not ignore empty initial arguments in concat_args()

Reported-by: Oliver Rath <rath@mglug.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-07-04 13:37:08 +01:00
parent bc93e8ab41
commit f3d197a529
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ char * concat_args ( char **args ) {
ptr = string;
for ( arg = args ; *arg ; arg++ ) {
ptr += sprintf ( ptr, "%s%s",
( ( ptr == string ) ? "" : " " ), *arg );
( ( arg == args ) ? "" : " " ), *arg );
}
assert ( ptr < ( string + len ) );