Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86de7416 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Use snprintf() to be safer



Use snprint() for creating the jack name string instead of sprintf()
in patch_sigmatel.c.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b04add95
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4066,7 +4066,7 @@ static int stac92xx_add_jack(struct hda_codec *codec,
	jack->nid = nid;
	jack->type = type;

	sprintf(name, "%s at %s %s Jack",
	snprintf(name, sizeof(name), "%s at %s %s Jack",
		snd_hda_get_jack_type(def_conf),
		snd_hda_get_jack_connectivity(def_conf),
		snd_hda_get_jack_location(def_conf));