]> git.ipfire.org Git - thirdparty/linux.git/commit
rfkill: Replace strcpy() with memcpy()
authorDavid Laight <david.laight.linux@gmail.com>
Sat, 6 Jun 2026 20:26:02 +0000 (21:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 10 Jun 2026 08:22:47 +0000 (10:22 +0200)
commit4cd243ef30d185e99098d2191302a3dc49bfef58
treebe793c97e7a0739b96d8c31d8fba0ce3a1f8fcee
parent201dd93a177806747af7b99f1021b6fb4d042ed7
rfkill: Replace strcpy() with memcpy()

The length of the string is calculated in order to allocate the correct
sized memory block, use the same length to copy the string.

Signed-off-by: David Laight <david.laight.linux@gmail.com>
Link: https://patch.msgid.link/20260606202633.5018-8-david.laight.linux@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/core.c