summaryrefslogtreecommitdiffstats
path: root/roff.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 /roff.c
parentfaba8b69bbb1a57a9980aa454612ab8cca95e93a (diff)
downloadmandoc-ff6ddfd72fee08b3063dffb618af31325e51beea.tar.gz
Support `size' constructs in eqn.7. Generalise mandoc_strontou to this
effect.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roff.c b/roff.c
index 4016ed0e..0bec5549 100644
--- a/roff.c
+++ b/roff.c
@@ -1149,7 +1149,7 @@ roff_nr(ROFF_ARGS)
if (0 == strcmp(key, "nS")) {
r->regs[(int)REG_nS].set = 1;
- if ((iv = mandoc_strntou(val, strlen(val), 10)) >= 0)
+ if ((iv = mandoc_strntoi(val, strlen(val), 10)) >= 0)
r->regs[(int)REG_nS].u = (unsigned)iv;
else
r->regs[(int)REG_nS].u = 0u;