summaryrefslogtreecommitdiffstats
path: root/chars.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 15:21:13 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 15:21:13 +0000
commitff6ddfd72fee08b3063dffb618af31325e51beea (patch)
tree13490df552db9fb8c134636ddefc554d2ded3c46 /chars.c
parentfaba8b69bbb1a57a9980aa454612ab8cca95e93a (diff)
downloadmandoc-ff6ddfd72fee08b3063dffb618af31325e51beea.tar.gz
Support `size' constructs in eqn.7. Generalise mandoc_strontou to this
effect.
Diffstat (limited to 'chars.c')
-rw-r--r--chars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chars.c b/chars.c
index 24774eb8..dcfe2615 100644
--- a/chars.c
+++ b/chars.c
@@ -111,7 +111,7 @@ mchars_num2char(const char *p, size_t sz)
{
int i;
- if ((i = mandoc_strntou(p, sz, 10)) < 0)
+ if ((i = mandoc_strntoi(p, sz, 10)) < 0)
return('\0');
return(isprint(i) ? i : '\0');
}
@@ -121,7 +121,7 @@ mchars_num2uc(const char *p, size_t sz)
{
int i;
- if ((i = mandoc_strntou(p, sz, 16)) < 0)
+ if ((i = mandoc_strntoi(p, sz, 16)) < 0)
return('\0');
/* FIXME: make sure we're not in a bogus range. */
return(i > 0x80 && i <= 0x10FFFF ? i : '\0');