aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit4ac6265c00a615f1c73a9e93009e46865afcdfd9 (patch)
tree84bf9628732ac7eeef73923d3f6f0f0f66bbc5ce /term.h
parent6c75cc18099b6c7db33c10df54276a2baeb97ae3 (diff)
downloadmandoc-4ac6265c00a615f1c73a9e93009e46865afcdfd9.tar.gz
mandoc-4ac6265c00a615f1c73a9e93009e46865afcdfd9.tar.zst
mandoc-4ac6265c00a615f1c73a9e93009e46865afcdfd9.zip
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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/term.h b/term.h
index 34249df6..b65524b6 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.110 2014/12/23 13:48:57 schwarze Exp $ */
+/* $Id: term.h,v 1.111 2015/01/31 00:12:41 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 *);