]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - argp/argp-parse.c
Avoid use of atoi in some places in libc
[thirdparty/glibc.git] / argp / argp-parse.c
index 68dc45417b86a0ffd422a388db081b8ca72a5c9e..1533b43aaf1d569ae6daf77dc0a73a07d073c38e 100644 (file)
@@ -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;