about summary refs log tree commit diff
path: root/manual/stdio.texi
diff options
context:
space:
mode:
Diffstat (limited to 'manual/stdio.texi')
-rw-r--r--manual/stdio.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/stdio.texi b/manual/stdio.texi
index 8051603321..c48e3e692f 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -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)