manual: Fix typo in parse_printf_format example [BZ #24638]

This commit is contained in:
Girish Joshi 2020-03-04 13:20:07 +01:00 committed by Florian Weimer
parent 78c9d0c6ef
commit 72bcc9ade0

View 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)