aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorXiongfeng Wang <[email protected]>2018-01-12 15:45:38 +0800
committerJonathan Cameron <[email protected]>2018-01-30 18:33:14 +0000
commitcb60610af54b143a74991c70448157baf5bfc345 (patch)
treecd946b0cd32d485ee5449cd447d6f13455657e55 /tools/perf/scripts/python/export-to-postgresql.py
parenta66a4e8e01f3b607a9aa5b5ed9ca588b4c3a962e (diff)
iio: accel: use strlcpy() instead of strncpy()
gcc-8 reports drivers/iio/accel/st_accel_i2c.c: In function 'st_accel_i2c_probe': ./include/linux/string.h:245:9: warning: '__builtin_strncpy' specified bound 20 equals destination size [-Wstringop-truncation] The compiler require that the length of the dest string is greater than the length we want to copy to make sure the dest string is nul-terminated. We can just use strlcpy() to avoid this warning. Signed-off-by: Xiongfeng Wang <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions