ldlinux: Don't drop args if we auto-lookup cmd extension
authorMatt Fleming <matt.fleming@intel.com>
Tue, 1 May 2012 15:00:12 +0000 (16:00 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 1 May 2012 15:00:12 +0000 (16:00 +0100)
commit254db41a8b0cf5f92bd6ff3f3e20bbd64ede071e
treeb371e4bf3cee0232a61f5c06defe8894521d869d
parent34ec5204dc2f2e6130f611b0710d475f7dd9d609
ldlinux: Don't drop args if we auto-lookup cmd extension

If we automatically lookup the extension for a command and the user
has supplied an argument to that command we incorrectly stamp the NUL
byte after the extension, and not after the argument, thereby
effectively erasing the argument.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/ldlinux.c