summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2018-08-27 13:46:46 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-10 10:18:32 +0200
commit9989d7f5495da56ff5eb79670d0e22ef828aabb5 (patch)
tree6048b3431f89e34c4dcf431e4db06bbe53cb8c77 /tools/perf/scripts/python
parent86eac24dbb7b0acc8608a52d42bc18e85c78d7ff (diff)
downloadkernel-9989d7f5495da56ff5eb79670d0e22ef828aabb5.tar.gz
staging: rtl8712u: Fix compiler warning about strncpy
When strncpy() is called with source and destination strings the same length, gcc 8 warns that there may be an unterminated string. Using strlcpy() rather than strncpy() forces a null at the end and quiets the warning. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions