summaryrefslogtreecommitdiff
path: root/manual/stdio.texi
diff options
context:
space:
mode:
authorGirish Joshi <girish946@gmail.com>2020-03-04 13:20:07 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-04 13:20:07 +0100
commit72bcc9ade00732b5b0ea0e855cc017364aea20df (patch)
treed3162044aad6dc6878a9ec60937060c0e87983a3 /manual/stdio.texi
parent78c9d0c6efabe2067ef7f93cd36325f54c60adc2 (diff)
downloadglibc-72bcc9ade00732b5b0ea0e855cc017364aea20df.tar.gz
manual: Fix typo in parse_printf_format example [BZ #24638]
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)