Skip to content

Commit f00de8e

Browse files
listouttiwai
authored andcommitted
ALSA: ctxfi: Replace deprecated strcpy() with strscpy()
strcpy() is deprecated; use strscpy() instead. Use strscpy() to copy the long name because there's no string to format with sprintf(). No functional changes intended. Link: KSPP/linux#88 Signed-off-by: Brahmajit Das <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent c987a39 commit f00de8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/pci/ctxfi/xfi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ ct_card_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
9898
if (err < 0)
9999
goto error;
100100

101-
strcpy(card->driver, "SB-XFi");
102-
strcpy(card->shortname, "Creative X-Fi");
101+
strscpy(card->driver, "SB-XFi");
102+
strscpy(card->shortname, "Creative X-Fi");
103103
snprintf(card->longname, sizeof(card->longname), "%s %s %s",
104104
card->shortname, atc->chip_name, atc->model_name);
105105

0 commit comments

Comments
 (0)