Allow octal or hex input.
Suggested-by: Geoff Steckel <gwes@sitaranetworks.com>
This commit is contained in:
parent
bdf1e3f204
commit
26909c8019
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user