]> 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)
commit454b8fd58af9be67b6117c7d02bbfee612a030d4
tree459b92d48e07ee89d0754a2f39562aad926f9994
parent5a3b809443b8e757c983b5d09310589287f8f35f
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