summaryrefslogtreecommitdiffstatshomepage
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
commit4d04de4d66adf8f2caa056966da460e722fdd6d3 (patch)
treed32d44420aa153f2987379a959d24e06df9c440d /man_term.c
parent7f83f64018902ad39b94705868df283386db95fa (diff)
downloadmandoc-4d04de4d66adf8f2caa056966da460e722fdd6d3.tar.gz
mandoc-4d04de4d66adf8f2caa056966da460e722fdd6d3.tar.zst
mandoc-4d04de4d66adf8f2caa056966da460e722fdd6d3.zip
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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index ef1d6636..786f1b4b 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.10 2009/06/11 07:26:35 kristaps Exp $ */
+/* $Id: man_term.c,v 1.11 2009/06/11 12:07:49 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);
}