=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.185 retrieving revision 1.186 diff -u -p -r1.185 -r1.186 --- mandoc/term.c 2011/04/29 22:18:12 1.185 +++ mandoc/term.c 2011/04/30 22:24:31 1.186 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.185 2011/04/29 22:18:12 kristaps Exp $ */ +/* $Id: term.c,v 1.186 2011/04/30 22:24:31 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -348,11 +348,10 @@ term_vspace(struct termp *p) static void numbered(struct termp *p, const char *word, size_t len) { - const char *rhs; + char c; - rhs = mchars_num2char(word, len); - if (rhs) - encode(p, rhs, 1); + if ('\0' != (c = mchars_num2char(word, len))) + encode(p, &c, 1); }