]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - argp/argp-help.c
INSTALL, install.texi: minor updates, regenerate
[thirdparty/glibc.git] / argp / argp-help.c
index 90a2795cefd2bdaf5a6c3efcb0ada20531b0611f..cc43f376d438ddb2029c293e1a7dd9c030985478 100644 (file)
@@ -1,5 +1,5 @@
 /* Hierarchial argument parsing help output
-   Copyright (C) 1995-2022 Free Software Foundation, Inc.
+   Copyright (C) 1995-2024 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Miles Bader <miles@gnu.ai.mit.edu>.
 
@@ -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);
              }
 
@@ -1560,7 +1560,7 @@ argp_args_usage (const struct argp *argp, const struct argp_state *state,
 }
 \f
 /* Print the documentation for ARGP to STREAM; if POST is false, then
-   everything preceeding a `\v' character in the documentation strings (or
+   everything preceding a `\v' character in the documentation strings (or
    the whole string, for those with none) is printed, otherwise, everything
    following the `\v' character (nothing for strings without).  Each separate
    bit of documentation is separated a blank line, and if PRE_BLANK is true,