mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 09:31:51 +00:00
[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:
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
Block a user