summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ea951690..bd61522d 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');