2008-02-08 Christian Franke <franke@computer.org>

* commands/cat.c (grub_cmd_cat): Print '\r' as hex to
        avoid overwriting previous output.
        * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
This commit is contained in:
robertmh committed 2008-02-09 11:02:26 +00:00
1 parent c196216293
commit 0d9ff7f075
3 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ grub_rescue_cmd_cat (int argc, char *argv[])
{
unsigned char c = buf[i];
if (grub_isprint (c) || grub_isspace (c))
if ((grub_isprint (c) || grub_isspace (c)) && c != '\r')
grub_putchar (c);
else
{