summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-11 12:07:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-11 12:07:49 +0000
commit5f01cd9971ff702a524ae0b46f692bf67ec2486e (patch)
treeda8e4de38776c49e96dae23505efa71e3723109a /man_term.c
parentc788f866d218b1363d95abee27eec8df64a79179 (diff)
downloadmandoc-5f01cd9971ff702a524ae0b46f692bf67ec2486e.tar.gz
Documented some un-clear parts of main.c.
Fixed footer to be new-groff style (OS DATE OS). Removed sanity check from mdoc_term (unnecessary).
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);
}