=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.205 retrieving revision 1.206 diff -u -p -r1.205 -r1.206 --- mandoc/term.c 2012/07/16 21:30:42 1.205 +++ mandoc/term.c 2012/11/16 17:16:55 1.206 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.205 2012/07/16 21:30:42 schwarze Exp $ */ +/* $Id: term.c,v 1.206 2012/11/16 17:16:55 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011, 2012 Ingo Schwarze @@ -376,7 +376,7 @@ void term_fontpopq(struct termp *p, const void *key) { - while (p->fonti >= 0 && key != &p->fontq[p->fonti]) + while (p->fonti >= 0 && key < (void *)(p->fontq + p->fonti)) p->fonti--; assert(p->fonti >= 0); }