summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-30 22:24:31 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-30 22:24:31 +0000
commit44ecac209529bca926296c46ec9ba062147bfbe2 (patch)
tree665dc3ecbb25554e5468ee30b1d2b4a486770254 /term.c
parent8978dc20be98c1d06b71ccbb2bb988879f8a2d1c (diff)
downloadmandoc-44ecac209529bca926296c46ec9ba062147bfbe2.tar.gz
Make mchars_num2char() return a char like it says.
Diffstat (limited to 'term.c')
-rw-r--r--term.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/term.c b/term.c
index b78f9ad1..e42dcea7 100644
--- a/term.c
+++ b/term.c
@@ -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);
}