diff options
author | cg <cg@FreeBSD.org> | 2002-01-25 02:39:34 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2002-01-25 02:39:34 +0000 |
commit | ba4ccad7af410a746ed01fec7f04aea5b1eb10ac (patch) | |
tree | 4582f0100018dbf9708ea2b0ef27e6263d017392 /sys | |
parent | c7b097b8468df650c77552ad8e53fbde10a1fa1e (diff) | |
download | FreeBSD-src-ba4ccad7af410a746ed01fec7f04aea5b1eb10ac.zip FreeBSD-src-ba4ccad7af410a746ed01fec7f04aea5b1eb10ac.tar.gz |
a buffer offset equal to the buffer size is illegal too, fix assertion in
sndbuf_getbufofs()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sound/pcm/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c index 5a83d6b..8e00e62 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; } |