Home
last modified time | relevance | path

Searched hist:"0 a7efa14e61ae2132fd718887deb28479b33386b" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/hda/
H A Dhdac_device.cdiff 0a7efa14e61ae2132fd718887deb28479b33386b Fri Mar 13 08:02:41 CDT 2020 Takashi Iwai <tiwai@suse.de> ALSA: hda: Use scnprintf() for string truncation

snd_hdac_codec_modalias() truncates the string to the given size and
returns its size, but it returned a wrong size from snprintf().
snprintf() returns the would-be-output size, not the actual size.
Use scnprintf() instead to return the correct size.

Link: https://lore.kernel.org/r/20200313130241.8970-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>