aboutsummaryrefslogtreecommitdiff
path: root/cpu-common.h
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-10-04 13:09:52 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2012-10-05 07:58:37 -0500
commitae2150680190e510dcbcdfdbfb3a54369c75367f (patch)
tree7188095d39ccc4ab2e210a376b3df2e0a8dc8640 /cpu-common.h
parent3eadc68ebd174f5bad51fe6e0bbcf6d6651c784c (diff)
ppc: avoid buffer overrun: use pstrcpy, not strncpy
A terminal NUL is required by caller's use of strchr. It's better not to use strncpy at all, since there is no need to zero out hundreds of trailing bytes for each iteration. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'cpu-common.h')
0 files changed, 0 insertions, 0 deletions