summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 13:25:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 13:25:25 +0000
commit3b30acd05567b2083b205cf8d1dfc5548ba0df39 (patch)
tree4a4dd744e9054b35565ec4712b59443d171a40d0 /term.c
parent8c61f2c921a13b11e670f0f4a8195c1b11045c8d (diff)
downloadmandoc-3b30acd05567b2083b205cf8d1dfc5548ba0df39.tar.gz
Track down a bug of empty `de XX' macros causing uncertain behaviour by
returning empty strings in roff_getstrn() instead of NULL. This caused maddeningly irregular segfaults in the pod2man preamble for `de IX'. But only on DEC alpha. Also integrate the kinda-probably-safe assertion relaxation in term.c, field-tested by schwarze@. This allows ALL [unpreprocessed] base and xenocara manuals for all BSD systems to run without segfault.
Diffstat (limited to 'term.c')
-rw-r--r--term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term.c b/term.c
index 409d433a..e8ba8fb7 100644
--- a/term.c
+++ b/term.c
@@ -146,7 +146,7 @@ term_flushln(struct termp *p)
* an indentation, but can be, for tagged lists or columns, a
* small set of values.
*/
- assert (p->rmargin > p->offset);
+ assert (p->rmargin >= p->offset);
dv = p->rmargin - p->offset;
maxvis = (int)dv > p->overstep ? dv - (size_t)p->overstep : 0;
dv = p->maxrmargin - p->offset;