Use even more conventional conversion routines.

Reported by: peterj@
This commit is contained in:
grog 2012-12-13 02:21:05 +00:00
parent f042d5b8f0
commit 63443f6610

View File

@ -943,7 +943,7 @@ indextooffset(char *s)
char *es;
if (s[0] == '+' || s[0] == '-') {
i = strtod (s, &es);
i = strtol (s, &es, 10);
if (*es != '\0') /* trailing junk */
errx (1, "Invalid specifier format: %s\n", s);
return (i);