+2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
+ which resulted in garbled command line at the end of screen.
+
2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
* loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
for (p = buf + pos; p < buf + llen; p++)
{
- if (cl_term->xpos++ > cl_term->width - 2)
+ if (c)
+ grub_putcode (c, cl_term->term);
+ else
+ grub_putcode (*p, cl_term->term);
+ cl_term->xpos++;
+ if (cl_term->xpos >= cl_term->width - 1)
{
- grub_putcode ('\n', cl_term->term);
-
- cl_term->xpos = 1;
- if (cl_term->ypos == (unsigned) (cl_term->height))
+ cl_term->xpos = 0;
+ if (cl_term->ypos >= (unsigned) (cl_term->height - 1))
cl_term->ystart--;
else
cl_term->ypos++;
+ grub_putcode ('\n', cl_term->term);
}
-
- if (c)
- grub_putcode (c, cl_term->term);
- else
- grub_putcode (*p, cl_term->term);
}
}