From: Geraldo Nascimento <geraldogabriel@gmail.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH 083/103] ALSA: Use safer strscpy() instead of strcpy()
Date: Thu, 10 Jul 2025 08:02:57 -0300 [thread overview]
Message-ID: <aG-d4bys9tt1jfIl@geday> (raw)
In-Reply-To: <20250710100727.22653-84-tiwai@suse.de>
On Thu, Jul 10, 2025 at 12:07:05PM +0200, Takashi Iwai wrote:
> 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>
> ---
> sound/pci/sis7019.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c
Hi Takashi,
I think you've missed the "sis7019: " after "ALSA: " on the subject line
for this one.
Regards,
Geraldo Nascimento
> index 42b22f123fa7..3d7abcb31679 100644
> --- a/sound/pci/sis7019.c
> +++ b/sound/pci/sis7019.c
> @@ -868,7 +868,7 @@ static int sis_pcm_create(struct sis7019 *sis)
> return rc;
>
> pcm->private_data = sis;
> - strcpy(pcm->name, "SiS7019");
> + strscpy(pcm->name, "SiS7019");
> sis->pcm = pcm;
>
> snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &sis_playback_ops);
> @@ -1348,8 +1348,8 @@ static int __snd_sis7019_probe(struct pci_dev *pci,
> if (rc < 0)
> return rc;
>
> - strcpy(card->driver, "SiS7019");
> - strcpy(card->shortname, "SiS7019");
> + strscpy(card->driver, "SiS7019");
> + strscpy(card->shortname, "SiS7019");
> rc = sis_chip_create(card, pci);
> if (rc)
> return rc;
> --
> 2.50.0
>
>
next prev parent reply other threads:[~2025-07-10 11:03 UTC|newest]
Thread overview: 112+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-10 10:05 [PATCH 000/103] ALSA: Use safer strscpy() instead of strcpy() Takashi Iwai
2025-07-10 10:05 ` [PATCH 001/103] ALSA: control: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 002/103] ALSA: rawmidi: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 003/103] ALSA: seq: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 004/103] ALSA: mpu401: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 005/103] ALSA: opl3: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 006/103] ALSA: opl4: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 007/103] ALSA: pcsp: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 008/103] ALSA: portman2x4: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 009/103] ALSA: serial-generic: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 010/103] ALSA: serial-u16550: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 011/103] ALSA: virmidi: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 012/103] ALSA: vx: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 013/103] ALSA: firewire: bebob: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 014/103] ALSA: firewire: dice: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 015/103] ALSA: firewire: digi00x: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 016/103] ALSA: firewire: fireface: " Takashi Iwai
2025-07-10 10:05 ` [PATCH 017/103] ALSA: firewire: fireworks: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 018/103] ALSA: firewire: isight: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 019/103] ALSA: firewire: motu: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 020/103] ALSA: firewire: oxfw: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 021/103] ALSA: firewire: tascam: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 022/103] ALSA: ad1816a: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 023/103] ALSA: adlib: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 024/103] ALSA: als100: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 025/103] ALSA: cmi8328: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 026/103] ALSA: cmi8330: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 027/103] ALSA: cs423x: " Takashi Iwai
2025-07-18 9:28 ` Charles Keepax
2025-07-10 10:06 ` [PATCH 028/103] ALSA: es1688: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 029/103] ALSA: es18xx: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 030/103] ALSA: galaxy: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 031/103] ALSA: gus: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 032/103] ALSA: msnd: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 033/103] ALSA: opl3sa2: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 034/103] ALSA: opti9xx: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 035/103] ALSA: sc6000: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 036/103] ALSA: sscape: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 037/103] ALSA: wavefront: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 038/103] ALSA: wss: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 039/103] ALSA: mips: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 040/103] ALSA: parisc: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 041/103] ALSA: ac97: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 042/103] ALSA: ad1889: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 043/103] ALSA: ak4531: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 044/103] ALSA: ali5451: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 045/103] ALSA: als300: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 046/103] ALSA: als4000: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 047/103] ALSA: asihpi: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 048/103] ALSA: atiixp: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 049/103] ALSA: au88x0: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 050/103] ALSA: aw2: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 051/103] ALSA: azt3328: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 052/103] ALSA: bt87x: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 053/103] ALSA: ca0106: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 054/103] ALSA: cmipci: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 055/103] ALSA: cs4281: " Takashi Iwai
2025-07-18 9:40 ` Charles Keepax
2025-07-10 10:06 ` [PATCH 056/103] ALSA: cs46xx: " Takashi Iwai
2025-07-18 9:41 ` Charles Keepax
2025-07-10 10:06 ` [PATCH 057/103] ALSA: cs5530: " Takashi Iwai
2025-07-18 9:41 ` Charles Keepax
2025-07-10 10:06 ` [PATCH 058/103] ALSA: cs5535audio: " Takashi Iwai
2025-07-18 9:41 ` Charles Keepax
2025-07-10 10:06 ` [PATCH 059/103] ALSA: ctxfi: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 060/103] ALSA: echoaudio: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 061/103] ALSA: emu10k1: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 062/103] ALSA: ens1370: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 063/103] ALSA: es1938: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 064/103] ALSA: es1968: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 065/103] ALSA: fm801: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 066/103] ALSA: ice1712: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 067/103] ALSA: ice1724: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 068/103] ALSA: intel8x0: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 069/103] ALSA: korg1212: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 070/103] ALSA: lola: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 071/103] ALSA: lx6464es: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 072/103] ALSA: maestro3: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 073/103] ALSA: mixart: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 074/103] ALSA: nm256: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 075/103] ALSA: oxygen: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 076/103] ALSA: pcxhr: " Takashi Iwai
2025-07-10 10:06 ` [PATCH 077/103] ALSA: riptide: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 078/103] ALSA: rme32: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 079/103] ALSA: rme96: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 080/103] ALSA: hdsp: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 081/103] ALSA: hdspm: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 082/103] ALSA: rme9652: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 083/103] ALSA: " Takashi Iwai
2025-07-10 11:02 ` Geraldo Nascimento [this message]
2025-07-10 11:20 ` Takashi Iwai
2025-07-10 10:07 ` [PATCH 084/103] ALSA: sonicvibes: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 085/103] ALSA: trident: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 086/103] ALSA: via82xx: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 087/103] ALSA: ymfpci: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 088/103] ALSA: pdaudiocf: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 089/103] ALSA: vxpocket: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 090/103] ALSA: ppc: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 091/103] ALSA: sh: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 092/103] ALSA: sparc: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 093/103] ALSA: spi: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 094/103] ALSA: synth: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 095/103] ALSA: 6fire: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 096/103] ALSA: line6: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 097/103] ALSA: usx2y: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 098/103] ALSA: ua101: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 099/103] ALSA: usb-audio: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 100/103] ALSA: ac97: Copy string more safely Takashi Iwai
2025-07-10 10:07 ` [PATCH 101/103] ALSA: cmipci: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 102/103] ALSA: usb-audio: " Takashi Iwai
2025-07-10 10:07 ` [PATCH 103/103] ALSA: core: " Takashi Iwai
2025-07-10 12:37 ` [PATCH 000/103] ALSA: Use safer strscpy() instead of strcpy() Takashi Sakamoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aG-d4bys9tt1jfIl@geday \
--to=geraldogabriel@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.