ALSA: es1688: Fix -Wformat-truncation warning
authorTakashi Iwai <tiwai@suse.de>
Fri, 15 Sep 2023 08:27:56 +0000 (10:27 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Sep 2023 11:21:33 +0000 (13:21 +0200)
commit1e97acf3a6609c1329e23c2bf1e703c012bec848
tree4ecda75b4ee512e8fb6c9efee8ae4bc532c6f788
parent399245d3046d7182a9ae97cb0671fc9ed8a579a6
ALSA: es1688: Fix -Wformat-truncation warning

The filling of card->longname can be gracefully truncated, as it's
only informative.  Use scnprintf() and suppress the superfluous
compile warning with -Wformat-truncation.

Link: https://lore.kernel.org/r/20230915082802.28684-8-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/es1688/es1688.c