]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: intel_hdmi: Use strlcpy() instead of strncpy()
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Jun 2018 12:59:00 +0000 (14:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Jun 2018 16:11:32 +0000 (18:11 +0200)
commit547fbe4f23eb70ec3f98ec72855e1e7a1fe07cb7
tree5217e0facab2451426d72e844afd90c33ec13594
parentdca60dd4f82b13f0d6e2000385893386851c3e1d
ALSA: intel_hdmi: Use strlcpy() instead of strncpy()

hdmi_lpe_audio_probe() copies the pcm name string via strncpy(), but
as a gcc8 warning suggests, it misses a NUL terminator, and unlikely
the expected result.

Use the proper one, strlcpy() instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c