=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term_ascii.c,v retrieving revision 1.29 retrieving revision 1.30 diff -c -r1.29 -r1.30 *** src/usr.bin/mandoc/term_ascii.c 2014/12/31 16:50:54 1.29 --- src/usr.bin/mandoc/term_ascii.c 2015/02/16 13:58:32 1.30 *************** *** 1,4 **** ! /* $OpenBSD: term_ascii.c,v 1.29 2014/12/31 16:50:54 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: term_ascii.c,v 1.30 2015/02/16 13:58:32 tedu Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze *************** *** 55,60 **** --- 55,62 ---- const char *toks[5]; char *v; struct termp *p; + const char *errstr; + int num; p = mandoc_calloc(1, sizeof(struct termp)); *************** *** 99,108 **** while (outopts && *outopts) switch (getsubopt(&outopts, UNCONST(toks), &v)) { case 0: ! p->defindent = (size_t)atoi(v); break; case 1: ! p->defrmargin = (size_t)atoi(v); break; case 2: /* --- 101,114 ---- while (outopts && *outopts) switch (getsubopt(&outopts, UNCONST(toks), &v)) { case 0: ! num = strtonum(v, 0, 1000, &errstr); ! if (!errstr) ! p->defindent = num; break; case 1: ! num = strtonum(v, 0, 1000, &errstr); ! if (!errstr) ! p->defrmargin = num; break; case 2: /*