Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: tas2781: Replace deprecated strcpy() with strscpy()

strcpy() is deprecated,use strscpy() instead.
No functional changes intended.
Link: https://github.com/KSPP/linux/issues/88

Signed-off-by: HariKrishna Sagala <hariconscious@gmail.com>
Link: https://patch.msgid.link/20251104054257.9953-2-hariconscious@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

HariKrishna Sagala and committed by
Mark Brown
3b071bdd 84194c66

+2 -1
+2 -1
sound/soc/codecs/tas2781-i2c.c
··· 1996 1996 dev_err(tas_priv->dev, "%s Can't get reset GPIO\n", 1997 1997 __func__); 1998 1998 1999 - strcpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name); 1999 + strscpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name, 2000 + sizeof(tas_priv->dev_name)); 2000 2001 } 2001 2002 2002 2003 static int tasdevice_i2c_probe(struct i2c_client *i2c)