summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/headers.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/aucat/headers.c')
-rw-r--r--usr.bin/aucat/headers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/headers.c b/usr.bin/aucat/headers.c
index f2960ec5a44..4795c47ee7a 100644
--- a/usr.bin/aucat/headers.c
+++ b/usr.bin/aucat/headers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: headers.c,v 1.1 2008/05/23 07:15:46 ratchov Exp $ */
+/* $OpenBSD: headers.c,v 1.2 2008/10/26 08:49:44 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -76,7 +76,7 @@ wav_readfmt(int fd, unsigned csize, struct aparams *par)
return 0;
}
cmax = par->cmin + nch - 1;
- if (cmax >= CHAN_MAX) {
+ if (cmax >= NCHAN_MAX) {
warnx("%u:%u: bad range", par->cmin, cmax);
return 0;
}