Commit 2832993
committed
ALSA: cmipci: Fix -Wformat-truncation warning
CMIPCI driver got compile warnings with -Wformat-truncation at a
couple of plain sprintf() usages. Use scnprintf() for filling the
longname string for avoiding the warnings.
Link: https://lore.kernel.org/r/20230915082802.28684-13-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent ea77850 commit 2832993
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3102 | 3102 | | |
3103 | 3103 | | |
3104 | 3104 | | |
3105 | | - | |
| 3105 | + | |
| 3106 | + | |
3106 | 3107 | | |
3107 | 3108 | | |
3108 | | - | |
3109 | | - | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
3110 | 3112 | | |
3111 | 3113 | | |
3112 | 3114 | | |
| |||
0 commit comments