summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-09 19:20:04 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-09 19:34:03 +0200
commit4f7070b8d271888ce57529a44f5c4b69cc894135 (patch)
tree045dfb82ab6683766255d133335c29718e8c4d51 /i386
parent4b8a219f30c319c9965204e42b7167c4ca90656c (diff)
i386: fix line wrapping in the immediate console
* i386/i386at/immc.c (immc_cnputc): Fix line wrapping.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386at/immc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386at/immc.c b/i386/i386at/immc.c
index ea95169..bd61522 100644
--- a/i386/i386at/immc.c
+++ b/i386/i386at/immc.c
@@ -86,7 +86,7 @@ immc_cnputc(dev_t dev, int c)
if (!immediate_console_enable)
return -1;
- if (ofs < 0)
+ if (ofs < 0 || ofs >= 80)
{
ofs = 0;
immc_cnputc(dev, '\n');