aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mixer_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mixer_plugin.c b/src/mixer_plugin.c
index 9f22b7e..34117a9 100644
--- a/src/mixer_plugin.c
+++ b/src/mixer_plugin.c
@@ -95,7 +95,7 @@ static int mixer_plug_info_enum(struct snd_control *ctl,
einfo->count = 1;
einfo->value.enumerated.items = val->items;
- if (einfo->value.enumerated.item > val->items)
+ if (einfo->value.enumerated.item >= val->items)
return -EINVAL;
strncpy(einfo->value.enumerated.name,