summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2020-09-28 03:27:49 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-09-30 11:56:27 +0300
commit69e4e1368803266d0e06dba86868f64f7b277cde (patch)
tree6aa889fff1d2424090eac673aa9e018da76f7aab /tools/perf/scripts/python/export-to-postgresql.py
parent0dc11e3ad353e19b1a119e3146c69c0930ecae5f (diff)
downloadlinux-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