summaryrefslogtreecommitdiff
path: root/kjarna/efi/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'kjarna/efi/file.c')
-rw-r--r--kjarna/efi/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kjarna/efi/file.c b/kjarna/efi/file.c
index 20c6ae0..517e09e 100644
--- a/kjarna/efi/file.c
+++ b/kjarna/efi/file.c
@@ -233,7 +233,8 @@ static ssize_t efi_console_write(EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *console, const
}
else
{
- ws[length] = L'\r';
+ if (ws[length - 1] == L'\n')
+ ws[length] = L'\r';
efi_errno = console->OutputString(console, ws);
}