Skip to contentSkip to conversation

alpha: smp: Replace deprecated strcpy() with strscpy()

PATCH RESEND New Thorsten Blum 1 participant 1 message Jul 16, 2025 Alpha port

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 alpha: smp: Replace deprecated strcpy() with strscpy()

strcpy() is deprecated; use strscpy() instead.

---
 arch/alpha/kernel/smp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/alpha/kernel/smp.c +1 -1
index ed06367ece57..56155b988b9c 100644
@@ -262,7 +262,7 @@ recv_secondary_console_msg(void)
 
 		cnt = cpu->ipc_buffer[0] >> 32;
 		if (cnt <= 0 || cnt >= 80)
-			strcpy(buf, "<<< BOGUS MSG >>>");
+			strscpy(buf, "<<< BOGUS MSG >>>");
 		else {
 			cp1 = (char *) &cpu->ipc_buffer[1];
 			cp2 = buf;
Signature · 1 line
2.50.1