]> git.hungrycats.org Git - linux/commit
xen/xenbus: Replace strcpy() with memcpy()
authorDavid Laight <david.laight.linux@gmail.com>
Sat, 6 Jun 2026 20:25:58 +0000 (21:25 +0100)
committerJuergen Gross <jgross@suse.com>
Tue, 9 Jun 2026 14:23:41 +0000 (16:23 +0200)
commita174910917a8e93cb5334e9dce8bac32bff22c47
treea3706748f194133f049c579e93b3e6fb3caa8ca8
parent1d5d1b8a4cd195eb95e1068054a8a18088bb9273
xen/xenbus: Replace strcpy() with memcpy()

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@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20260606202633.5018-4-david.laight.linux@gmail.com>
drivers/xen/xenbus/xenbus_probe.c