From 3ee412a268eff0c9e52bb141dc3289eda00a6d53 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 21 Jul 2011 15:21:13 +0000 Subject: Support `size' constructs in eqn.7. Generalise mandoc_strontou to this effect. --- chars.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chars.c') diff --git a/chars.c b/chars.c index d0fd8724..369aac2f 100644 --- a/chars.c +++ b/chars.c @@ -1,4 +1,4 @@ -/* $Id: chars.c,v 1.47 2011/07/07 06:41:50 kristaps Exp $ */ +/* $Id: chars.c,v 1.48 2011/07/21 15:21:13 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -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'); -- cgit v1.2.3