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:
Takashi Iwai 2025-07-10 12:07:11 +02:00
parent a5546578af
commit 704a54b84f
1 changed files with 1 additions and 1 deletions

View File

@ -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);