summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--com32/mboot/mboot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/com32/mboot/mboot.c b/com32/mboot/mboot.c
index 41a5ef17..fc4f962a 100644
--- a/com32/mboot/mboot.c
+++ b/com32/mboot/mboot.c
@@ -121,7 +121,10 @@ static int get_modules(char **argv, struct module_data **mdp)
}
printf("ok\n");
- argp++;
+ /*
+ * Note: Grub includes the kernel filename in the command line, so we
+ * want to match that behavior.
+ */
arglen = 0;
for (argx = argp; *argx && strcmp(*argx, module_separator); argx++)
arglen += strlen(*argx)+1;