diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-06 13:25:25 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-06 13:25:25 +0000 |
commit | 3b30acd05567b2083b205cf8d1dfc5548ba0df39 (patch) | |
tree | 4a4dd744e9054b35565ec4712b59443d171a40d0 /term.c | |
parent | 8c61f2c921a13b11e670f0f4a8195c1b11045c8d (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |