mirror of https://github.com/ipxe/ipxe.git
[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>pull/598/head
parent
bc93e8ab41
commit
f3d197a529
|
@ -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 ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue