Re: [PATCH next] drivers/tty/serial/kgdboc: Use strscpy() to copy strings into arrays

From: Daniel Thompson

Date: Wed Jun 24 2026 - 06:33:57 EST


On Mon, Jun 08, 2026 at 10:54:54AM +0100, david.laight.linux@xxxxxxxxx wrote:
> From: David Laight <david.laight.linux@xxxxxxxxx>
>
> Replacing strcpy() with strscpy() ensures that overflow of the target
> buffer cannot happen.
>
> Signed-off-by: David Laight <david.laight.linux@xxxxxxxxx>

Reviewed-by: Daniel Thompson (RISCstar) <danielt@xxxxxxxxxx>


Daniel.