Skip to content
Commit 97f44f56 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: Limit the fallback card id string size



When no proper id string is given, the driver tries to fall back to
copy the proc_root name string via strcpy(), but this might overflow
the fixed string size.  Let's use strlcpy().

Spotted by coverity CID 139008.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 75415df8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment