From: Alejandro Colomar Date: Thu, 14 Nov 2024 22:46:26 +0000 (+0100) Subject: lsearch.3: Dereference 'nmemb' pointer X-Git-Tag: man-pages-6.10~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39764b24f79392bc2ff077564383cba4406c59b3;p=thirdparty%2Fman-pages.git lsearch.3: Dereference 'nmemb' pointer nmemb is a pointer, so it needs to be dereferenced to calculate the size of the array. Reported-by: Martin Uecker Signed-off-by: Alejandro Colomar --- diff --git a/man/man3/lsearch.3 b/man/man3/lsearch.3 index 1d1bf0b5b..c15c072cf 100644 --- a/man/man3/lsearch.3 +++ b/man/man3/lsearch.3 @@ -15,12 +15,12 @@ Standard C library .B #include .P .BI "void *lfind(const void " key [. size "], \ -const void " base [. size " * ." nmemb ], +const void " base [*. nmemb " * ." size ], .BI " size_t *" nmemb ", size_t " size , .BI " int(*" compar ")(const void [." size "], \ const void [." size ])); .BI "void *lsearch(const void " key [. size "], \ -void " base [. size " * ." nmemb ], +void " base [*. nmemb " * ." size ], .BI " size_t *" nmemb ", size_t " size , .BI " int(*" compar ")(const void [." size "], \ const void [." size ]));