2
0
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:
Michael Brown 2012-07-04 13:37:08 +01:00
parent bc93e8ab41
commit f3d197a529

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 ) );