Hallo,
when I typ in the command 'SETKEY' in the grub shel without any
argument, so the grub shell crash.
The following patch coused, that this crash will not occured.
Regards: Jochen Schmitt
--- stage2/char_io.c.org Mon Oct 16 19:54:02 2000
+++ stage2/char_io.c Mon Oct 16 19:56:13 2000
@@ -1003,6 +1003,15 @@
int
grub_strcmp (const char *s1, const char *s2)
{
+ if (s1 == s2)
+ return 0;
+
+ if (s1 != NULL & s2 == NULL)
+ return 1;
+
+ if (s1 == NULL & s2 != NULL)
+ return -1;
+
while (*s1 || *s2)
{
if (*s1 < *s2)