We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0498a04 commit 0845b3eCopy full SHA for 0845b3e
sound/usb/mixer.c
@@ -2224,7 +2224,8 @@ static void build_mixer_unit_ctl(struct mixer_build *state,
2224
len = get_term_name(state->chip, iterm, kctl->id.name,
2225
sizeof(kctl->id.name), 0);
2226
if (!len)
2227
- len = sprintf(kctl->id.name, "Mixer Source %d", in_ch + 1);
+ snprintf(kctl->id.name, sizeof(kctl->id.name), "Mixer Source %d", in_ch + 1);
2228
+
2229
append_ctl_name(kctl, " Volume");
2230
2231
usb_audio_dbg(state->chip, "[%d] MU [%s] ch = %d, val = %d/%d\n",
0 commit comments