fix a bug in the Linux cmdline handling code.
This commit is contained in:
parent
11236082ea
commit
092f32f05b
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2000-10-16 OKUJI Yoshinori <okuji@gnu.org>
|
||||
|
||||
* stage2/boot.c (load_image): When handling Linux cmdline, don't
|
||||
copy a null character from SRC to DEST, because this inserted an
|
||||
extra null character into the cmdline. Reported by Robert
|
||||
Bihlmeyer <robbe@orcus.priv.at>.
|
||||
|
||||
2000-10-16 OKUJI Yoshinori <okuji@gnu.org>
|
||||
|
||||
Some of the new Multiboot features are supported. APM support
|
||||
|
|
|
@ -320,7 +320,8 @@ load_image (char *kernel, char *arg, kernel_t suggested_type,
|
|||
char *src = skip_to (0, arg);
|
||||
char *dest = (char *) CL_MY_LOCATION;
|
||||
|
||||
while (((int) dest) < CL_MY_END_ADDR && (*(dest++) = *(src++)));
|
||||
while (((int) dest) < CL_MY_END_ADDR && *src)
|
||||
*(dest++) = *(src++);
|
||||
|
||||
/* Add a mem option automatically only if the user doesn't
|
||||
specify it explicitly. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue