Skip to content

Commit

Permalink
Fix the jack name copy in snd_kctl_jack_new() for older kernels
Browse files Browse the repository at this point in the history
This resulted in the empty string, eventually aborts.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Aug 24, 2015
1 parent 6ca38ce commit a8e4435
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ctljack.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ snd_kctl_jack_new(const char *name, int idx, void *private_data)
kctl = snd_ctl_new1(&jack_detect_kctl, private_data);
if (!kctl)
return NULL;
snprintf(kctl->id.name, sizeof(kctl->id.name), "%s Jack", name);
kctl->id.index = idx;
#endif
kctl->private_value = 0;
Expand Down

0 comments on commit a8e4435

Please sign in to comment.