diff options
author | Kent Gibson <[email protected]> | 2020-09-28 08:27:49 +0800 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2020-09-30 10:56:27 +0200 |
commit | 69e4e1368803266d0e06dba86868f64f7b277cde (patch) | |
tree | 6aa889fff1d2424090eac673aa9e018da76f7aab /scripts/gdb/linux/modules.py | |
parent | 0dc11e3ad353e19b1a119e3146c69c0930ecae5f (diff) |
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 <[email protected]>
Signed-off-by: Kent Gibson <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions