diff options
| author | Tomasz Unger <tomasz.unger@yahoo.pl> | 2026-03-01 17:43:45 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-04 04:13:11 +0300 |
| commit | c49a9eb650d5b6c9a19901e9055ad4e0a0d2386e (patch) | |
| tree | dd55ae73c5509232454f651e59a3e4728031c526 /scripts/livepatch | |
| parent | 66e807f96f4e895283ac27ebd0e2513d7c8da557 (diff) | |
| download | linux-c49a9eb650d5b6c9a19901e9055ad4e0a0d2386e.tar.xz | |
NFC: nfcmrvl: Replace strcpy() with strscpy()
Replace strcpy() with strscpy() which limits the copy to the size of
the destination buffer. Since fw_dnld->name is an array, the
two-argument variant of strscpy() is used - the compiler deduces
the buffer size automatically.
This is a defensive cleanup replacing the deprecated strcpy()
with the preferred strscpy().
Signed-off-by: Tomasz Unger <tomasz.unger@yahoo.pl>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260301144345.218628-1-tomasz.unger@yahoo.pl
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/livepatch')
0 files changed, 0 insertions, 0 deletions
