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 8051603..c48e3e6 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)