diff options
| author | Karel Zak <kzak@redhat.com> | 2023-01-20 15:20:55 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2023-01-20 15:20:55 +0100 |
| commit | 91a484febae74588517226c6e0870562ca430651 (patch) | |
| tree | d5784206a91379359123f2194a3fd86d3c61507f /sys-utils/lscpu-arm.c | |
| parent | 643670d9ab7522059de9a19367858470ef92a710 (diff) | |
| download | util-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
