[PATCH] powerpc/pasemi: Use strscpy instead of strlcpy
Michael Ellerman
patch-notifications at ellerman.id.au
Fri Sep 9 22:07:36 AEST 2022
On Sat, 27 Aug 2022 16:39:46 +1000, Russell Currey wrote:
> find_i2c_driver() contained the last usage of strlcpy() in arch/powerpc.
> The return value was used to check if strlen(src) >= n, for which
> strscpy() returns -E2BIG.
>
>
Applied to powerpc/next.
[1/1] powerpc/pasemi: Use strscpy instead of strlcpy
https://git.kernel.org/powerpc/c/245685495bff35062a394f5cdbd32b237dc596a5
cheers
More information about the Linuxppc-dev
mailing list