summaryrefslogtreecommitdiff
path: root/lib/libossaudio
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1998-05-25 21:37:47 +0000
committerNiels Provos <provos@cvs.openbsd.org>1998-05-25 21:37:47 +0000
commit94da0ba5f133752f8f32131ad0c738e4028e5eeb (patch)
tree7d5751f442872b7824c4b3d204f6940550a94c7b /lib/libossaudio
parente36ac8f344dc31e3480af70bdd20643561c9fa44 (diff)
fix off by one error, reported by nathanw@MIT.EDU.
Diffstat (limited to 'lib/libossaudio')
-rw-r--r--lib/libossaudio/ossaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libossaudio/ossaudio.c b/lib/libossaudio/ossaudio.c
index 9b9b7215847..f2e967db299 100644
--- a/lib/libossaudio/ossaudio.c
+++ b/lib/libossaudio/ossaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ossaudio.c,v 1.1 1998/05/01 09:23:00 provos Exp $ */
+/* $OpenBSD: ossaudio.c,v 1.2 1998/05/25 21:37:46 provos Exp $ */
/* $NetBSD: ossaudio.c,v 1.5 1998/03/23 00:39:18 augustss Exp $ */
/*
@@ -275,7 +275,7 @@ audio_ioctl(int fd, unsigned long com, void *argp)
if (retval < 0)
return retval;
u = tmpinfo.blocksize;
- for(idat = 0; u; idat++, u >>= 1)
+ for(idat = 0; u>1; idat++, u >>= 1)
;
idat |= (tmpinfo.hiwat & 0x7fff) << 16;
INTARG = idat;