aboutsummaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu-arm.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2023-01-20 15:20:55 +0100
committerKarel Zak <kzak@redhat.com>2023-01-20 15:20:55 +0100
commit91a484febae74588517226c6e0870562ca430651 (patch)
treed5784206a91379359123f2194a3fd86d3c61507f /sys-utils/lscpu-arm.c
parent643670d9ab7522059de9a19367858470ef92a710 (diff)
downloadutil-linux-91a484febae74588517226c6e0870562ca430651.tar.gz
lsfd: remove strcpy(), keep things based on sizeof()
* use safe xstrncpy() rather than strcpy() * use sizeof() for static buffers rather than macro with real size (this solution is more robust for future code changes) * use xcalloc() to zeroize allocated memory Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu-arm.c')
0 files changed, 0 insertions, 0 deletions