]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: move core from strlcpy to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 11 Aug 2022 12:08:08 +0000 (14:08 +0200)
committerWolfram Sang <wsa@kernel.org>
Thu, 11 Aug 2022 21:02:52 +0000 (23:02 +0200)
commit255fd1c32a96466b17cc7668c43e819ef10329a2
tree459b92d48e07ee89d0754a2f39562aad926f9994
parentd78fbc9ec3c0b03742d2e389b595dafc2f39bfbc
i2c: move core from strlcpy to strscpy

Follow the advice of the below link and prefer 'strscpy'. Conversion is
easy because no code used the return value. It has been done with a
simple sed invocation.

Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-core-base.c
drivers/i2c/i2c-smbus.c