Re: [PATCH next] nxen/xenbus: Replace strcpy() with memcpy()

From: Jürgen Groß

Date: Mon Jun 08 2026 - 09:34:29 EST


On 06.06.26 22:25, david.laight.linux@xxxxxxxxx wrote:
From: David Laight <david.laight.linux@xxxxxxxxx>

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@xxxxxxxxx>

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen

Attachment: OpenPGP_0xB0DE9DD628BF132F.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature