+2006-05-02 Pavel Roskin <proski@gnu.org>
+
+ * grub/main.c (main): Make sure the boot drive number doesn't
+ exceed 255.
+
2006-05-02 Vesa Jaaskelainen <chaac@nic.fi>
* stage2/shared.h (vbe_mode): Back ported aligment fix from GRUB 2
#define WITHOUT_LIBC_STUBS 1
#include <shared.h>
#include <term.h>
+#include <device.h>
char *program_name = 0;
int use_config_file = 1;
perror ("strtoul");
exit (1);
}
+ if (boot_drive >= NUM_DISKS)
+ {
+ fprintf (stderr, "boot_drive should be from 0 to %d\n",
+ NUM_DISKS - 1);
+ exit (1);
+ }
break;
case OPT_NO_CONFIG_FILE: