ASoC: Intel: Replace deprecated strcpy() with strscpy()
authorSachin Mokashi <sachin.mokashi@intel.com>
Fri, 13 Jun 2025 16:35:30 +0000 (12:35 -0400)
committerMark Brown <broonie@kernel.org>
Mon, 16 Jun 2025 12:26:45 +0000 (13:26 +0100)
commit47972c1c3315672352f25c68f91dd88543541947
tree242c31e5b08dc218e367f5f2b30d23c22a79d016
parente7af416aebb36e6681b9c6950d0f6352aee7c084
ASoC: Intel: Replace deprecated strcpy() with strscpy()

strcpy() is deprecated, use strscpy() instead.
As strcpy() performs no bounds checking on the destination buffer. This
could result in buffer overflow. The safe replacement is strscpy().

Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Sachin Mokashi <sachin.mokashi@intel.com>
Link: https://patch.msgid.link/20250613163530.1165690-1-sachin.mokashi@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_rt5672.c