mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 09:39:22 +00:00
fix a bug in the Linux cmdline handling code.
This commit is contained in:
1 parent
11236082ea
commit
092f32f05b
2 files changed
+10
-2
No files matched your search
+3
-2
@@ -320,8 +320,9 @@ 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. */
|
||||
if (! grub_strstr (arg, "mem=")
|
||||
|
||||
Reference in new issue
Block a user