aboutsummaryrefslogtreecommitdiff
path: root/argp/argp-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'argp/argp-parse.c')
-rw-r--r--argp/argp-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/argp/argp-parse.c b/argp/argp-parse.c
index 68dc454..1533b43 100644
--- a/argp/argp-parse.c
+++ b/argp/argp-parse.c
@@ -147,7 +147,7 @@ argp_default_parser (int key, char *arg, struct argp_state *state)
break;
case OPT_HANG:
- _argp_hang = atoi (arg ? arg : "3600");
+ _argp_hang = arg ? strtol (arg, NULL, 10) : 3600;
while (_argp_hang-- > 0)
__sleep (1);
break;