On 2026-07-01T17:15:27, Rasmus Villemoes <[email protected]> wrote:
> string: correct documentation for strstr and strnstr
>
> The len parameter for strnstr() concerns the maximum size of the
> haystack to consider, not the length of the needle being searched for.
>
> strstr() obviously has no len parameter, so remove the copy-pasta.
>
> Signed-off-by: Rasmus Villemoes <[email protected]>
>
> lib/string.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to