Kent Gibson 69e4e13688 gpiolib: cdev: replace strncpy() with strscpy()
Replace usage of strncpy() with strscpy() to remove -Wstringop-truncation
warnings.

The structures being populated are zeroed, to prevent stack leakage as
they are returned to userspace, so strscpy() performs the equivalent
function without the warnings.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
2020-09-30 10:56:27 +02:00
..
2020-07-20 15:34:59 +02:00
2020-01-23 16:16:05 +01:00
2020-07-23 15:03:25 +02:00
2018-05-16 14:35:24 +02:00
2020-01-15 11:24:19 +01:00
2019-09-03 16:04:19 +02:00
2020-09-29 15:04:31 +02:00
2019-11-07 09:27:48 +01:00
2020-07-30 00:13:10 +02:00
2019-11-07 09:27:48 +01:00
2020-01-15 13:45:01 +01:00
2018-01-09 14:51:00 +01:00
2019-11-07 09:27:48 +01:00
2019-12-09 10:40:18 +01:00
2020-09-29 15:04:31 +02:00
2020-06-15 10:15:29 +02:00