Allow octal or hex input.

Suggested-by:	Geoff Steckel <gwes@sitaranetworks.com>
This commit is contained in:
Greg Lehey 1999-11-17 23:42:09 +00:00
parent bdf1e3f204
commit 26909c8019

View File

@ -168,7 +168,7 @@ parse(char *string)
switch (kind & CTLTYPE) {
case CTLTYPE_INT:
intval = atoi(newval);
intval = (int) strtol(newval, NULL, 0);
newval = &intval;
newsize = sizeof intval;
break;