From: Clemens Ladisch Date: Fri, 30 Nov 2007 07:14:04 +0000 (+0100) Subject: iecset: fix card index check X-Git-Tag: v1.0.16rc1~7 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=0629a38f6c4c59c296d29467db8ceec1ec9dbca0;p=alsa-utils.git iecset: fix card index check Allow card indices up to 31. --- diff --git a/iecset/iecset.c b/iecset/iecset.c index ef5eafe..72f6cc0 100644 --- a/iecset/iecset.c +++ b/iecset/iecset.c @@ -308,7 +308,7 @@ int main(int argc, char **argv) break; case 'c': i = atoi(optarg); - if (i < 0 || i >= 7) { + if (i < 0 || i >= 32) { fprintf(stderr, "invalid card index %d\n", i); return 1; }