aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm/buffer.c
diff options
context:
space:
mode:
authorCameron Grant <cg@FreeBSD.org>2002-01-25 02:39:34 +0000
committerCameron Grant <cg@FreeBSD.org>2002-01-25 02:39:34 +0000
commitbe27d718c0c37374772df0f77f9080b0d0b3599f (patch)
tree4582f0100018dbf9708ea2b0ef27e6263d017392 /sys/dev/sound/pcm/buffer.c
parentf8db81f347d46b9deb594672a9b2c71cd1e953ae (diff)
a buffer offset equal to the buffer size is illegal too, fix assertion in
sndbuf_getbufofs()
Notes
Notes: svn path=/head/; revision=89771
Diffstat (limited to 'sys/dev/sound/pcm/buffer.c')
-rw-r--r--sys/dev/sound/pcm/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c
index 5a83d6b5ba9f..8e00e62007a0 100644
--- a/sys/dev/sound/pcm/buffer.c
+++ b/sys/dev/sound/pcm/buffer.c
@@ -307,7 +307,7 @@ sndbuf_getbuf(struct snd_dbuf *b)
void *
sndbuf_getbufofs(struct snd_dbuf *b, unsigned int ofs)
{
- KASSERT(ofs <= b->bufsize, ("%s: ofs invalid %d", __func__, ofs));
+ KASSERT(ofs < b->bufsize, ("%s: ofs invalid %d", __func__, ofs));
return b->buf + ofs;
}