]> git.ipfire.org Git - thirdparty/linux.git/commit
ata: pata_it821x: Replace deprecated strcpy with strscpy in it821x_display_disk
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 18 Oct 2025 10:51:45 +0000 (12:51 +0200)
committerNiklas Cassel <cassel@kernel.org>
Thu, 23 Oct 2025 12:23:40 +0000 (14:23 +0200)
commit4ea303d9e9862ff8bd3707f67b267646b8ffd3ec
tree166f8d56985fd53274e439987c126017bd6914f6
parentc9d869fb29d3844ec6a48b1255d6ad582309011f
ata: pata_it821x: Replace deprecated strcpy with strscpy in it821x_display_disk

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

Replace the hard-coded buffer size 8 with sizeof(mbuf) when using
snprintf() while we're at it.

Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/pata_it821x.c