summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-31 00:12:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-31 00:12:41 +0000
commit3b15b25a7deff6f634e8233f6f8d96485308c592 (patch)
tree3db8a0db30d9044a660aacd29afe763a45f05d64 /term.h
parent36097423ac8b35b42f700e0b63e3b6ac44d88235 (diff)
downloadmandoc-3b15b25a7deff6f634e8233f6f8d96485308c592.tar.gz
Use relative offsets instead of absolute pointers for the terminal
font stack. The latter fail after the stack is grown with realloc(). Fixing an assertion failure found by jsg@ with afl some time ago (test case number 51).
Diffstat (limited to 'term.h')
-rw-r--r--term.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/term.h b/term.h
index f9170f0c..351b2ee0 100644
--- a/term.h
+++ b/term.h
@@ -126,10 +126,9 @@ int term_vspan(const struct termp *, const struct roffsu *);
size_t term_strlen(const struct termp *, const char *);
size_t term_len(const struct termp *, size_t);
-const enum termfont *term_fontq(struct termp *);
void term_fontpush(struct termp *, enum termfont);
void term_fontpop(struct termp *);
-void term_fontpopq(struct termp *, const enum termfont *);
+void term_fontpopq(struct termp *, int);
void term_fontrepl(struct termp *, enum termfont);
void term_fontlast(struct termp *);