ldlinux: Fixup lwip merge botch
authorMatt Fleming <matt.fleming@intel.com>
Fri, 15 Mar 2013 16:32:52 +0000 (16:32 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 15 Mar 2013 17:16:29 +0000 (17:16 +0000)
commitba45539416c804ed65a129ae3fd07f585f6a61ff
treeca5930045fe3a7f954825883cfad4a6f5f16ecf0
parent00a6f13139ce5d967b1f9614068a549520d4cca3
ldlinux: Fixup lwip merge botch

The lwip merge changed the code for copying cmdline arguments from,

    strcpy(q, p);

to this,

    do {
*q++ = ch = *p++;
    } while (ch);

which means 'p' no longer points at 'args'. Use 'args' explicitly for
the case where we need to apply a filename extension, otherwise users
end up seeing errors like,

    Failed to load COM32 file .c32

Reported-by: Mattias Schlenker <ms@mattiasschlenker.de>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/execute.c