diff options
author | Kent Gibson <warthog618@gmail.com> | 2020-09-28 03:27:49 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-09-30 11:56:27 +0300 |
commit | 69e4e1368803266d0e06dba86868f64f7b277cde (patch) | |
tree | 6aa889fff1d2424090eac673aa9e018da76f7aab /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0dc11e3ad353e19b1a119e3146c69c0930ecae5f (diff) | |
download | linux-69e4e1368803266d0e06dba86868f64f7b277cde.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions