Thread (2 messages) 2 messages, 2 authors, 5d ago

Re: [PATCH] powerpc/pseries/lparcfg: Replace deprecated strcpy in parse_system_parameter_string

From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2026-06-19 22:00:50
Also in: linux-hardening, lkml

On Mon, 13 Oct 2025 15:57:02 +0200, Thorsten Blum wrote:
strcpy() is deprecated; use strscpy() instead. Use the return value of
strscpy() instead of calling strlen() again, and ignore any potential
string truncation since both strings are much shorter than the buffer
size SPLPAR_MAXLENGTH.

Change both if conditions to silence the following checkpatch warnings:

[...]
Applied to powerpc/next.

[1/1] powerpc/pseries/lparcfg: Replace deprecated strcpy in parse_system_parameter_string
      https://git.kernel.org/powerpc/c/c8f80f95da32618d49c2a068ee561b85655b761d

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help