=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.255 retrieving revision 1.256 diff -u -p -r1.255 -r1.256 --- mandoc/term.c 2015/10/23 14:50:58 1.255 +++ mandoc/term.c 2016/01/07 21:03:54 1.256 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.255 2015/10/23 14:50:58 schwarze Exp $ */ +/* $Id: term.c,v 1.256 2016/01/07 21:03:54 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -365,7 +365,7 @@ term_fontpush(struct termp *p, enum termfont f) if (++p->fonti == p->fontsz) { p->fontsz += 8; p->fontq = mandoc_reallocarray(p->fontq, - p->fontsz, sizeof(enum termfont *)); + p->fontsz, sizeof(*p->fontq)); } p->fontq[p->fonti] = f; }