diff options
Diffstat (limited to 'argp/argp-help.c')
-rw-r--r-- | argp/argp-help.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/argp/argp-help.c b/argp/argp-help.c index 90a2795..f7f1134c 100644 --- a/argp/argp-help.c +++ b/argp/argp-help.c @@ -210,9 +210,9 @@ fill_in_uparams (const struct argp_state *state) } else if (isdigit ((unsigned char) *arg)) { - val = atoi (arg); - while (isdigit ((unsigned char) *arg)) - arg++; + char *ep; + val = strtol (arg, &ep, 10); + arg = ep; SKIPWS (arg); } |