]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/gma500: Replace deprecated strncpy() with strscpy()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 25 Feb 2025 20:39:32 +0000 (21:39 +0100)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Thu, 6 Mar 2025 09:26:36 +0000 (10:26 +0100)
commitce43cf347759936bd7b16d66b5b5072757756e4a
tree755d346ecfa922bb63534fde85fb33d6ca39116d
parentf83a9b8c7fd0557b0c50784bfdc1bbe9140c9bf8
drm/gma500: Replace deprecated strncpy() with strscpy()

strncpy() is deprecated for NUL-terminated destination buffers. Use
strscpy() instead and remove the manual NUL-termination.

Compile-tested only.

Link: https://github.com/KSPP/linux/issues/90
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250225203932.334123-1-thorsten.blum@linux.dev
drivers/gpu/drm/gma500/cdv_intel_dp.c