Thread (3 messages) flat view 3 messages, 3 authors, 2026-03-04

Re: [PATCH net-next v1] NFC: nfcmrvl: Replace strcpy() with strscpy()

From: Simon Horman <horms@kernel.org>
Date: 2026-03-03 20:56:10
Also in: lkml

On Sun, Mar 01, 2026 at 03:43:45PM +0100, tomasz.unger@yahoo.pl wrote:
From: Tomasz Unger <redacted>

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 <redacted>
Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help