]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: Fix typo in parse_printf_format example [BZ #24638]
authorGirish Joshi <girish946@gmail.com>
Wed, 4 Mar 2020 12:20:07 +0000 (13:20 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 4 Mar 2020 12:20:07 +0000 (13:20 +0100)
manual/stdio.texi

index 8051603321c1a3f52dc3e8911c453c34725378b7..c48e3e692f6f4a9c9dfd8e51ebb1ecf18e756e28 100644 (file)
@@ -2880,7 +2880,7 @@ validate_args (char *format, int nargs, OBJECT *args)
      @r{length of the string.}  */
 
   argtypes = (int *) alloca (strlen (format) / 2 * sizeof (int));
-  nwanted = parse_printf_format (string, nelts, argtypes);
+  nwanted = parse_printf_format (format, nargs, argtypes);
 
   /* @r{Check the number of arguments.}  */
   if (nwanted > nargs)