summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index f537be74..32882700 100644
--- a/man_term.c
+++ b/man_term.c
@@ -292,7 +292,9 @@ pre_IP(DECL_ARGS)
offs = strlen(nn->string);
p->flags |= TERMP_NOSPACE;
- p->offset += offs;
+ /* FIXME */
+ if ((p->offset += offs) > p->rmargin)
+ errx(1, "line too long");
return(0);
}