mirror of https://github.com/torvalds/linux.git
ALSA: vxpocket: Use safer strscpy() instead of strcpy()
Use a safer function strscpy() instead of strcpy() for copying to arrays. Only idiomatic code replacement, and no functional changes. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20250710100727.22653-90-tiwai@suse.de
This commit is contained in:
parent
a5546578af
commit
704a54b84f
|
|
@ -187,7 +187,7 @@ static int vxpocket_config(struct pcmcia_device *link)
|
|||
/* overwrite the hardware information */
|
||||
chip->hw = &vxp440_hw;
|
||||
chip->type = vxp440_hw.type;
|
||||
strcpy(chip->card->driver, vxp440_hw.name);
|
||||
strscpy(chip->card->driver, vxp440_hw.name);
|
||||
}
|
||||
|
||||
ret = pcmcia_request_io(link);
|
||||
|
|
|
|||
Loading…
Reference in New Issue