summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/sio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libsndio/sio.c')
-rw-r--r--lib/libsndio/sio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libsndio/sio.c b/lib/libsndio/sio.c
index c633354e886..e39b94f1f82 100644
--- a/lib/libsndio/sio.c
+++ b/lib/libsndio/sio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio.c,v 1.11 2012/10/27 11:58:08 ratchov Exp $ */
+/* $OpenBSD: sio.c,v 1.12 2013/02/01 09:02:16 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -161,6 +161,7 @@ sio_setpar(struct sio_hdl *hdl, struct sio_par *par)
if (par->bufsz != ~0U) {
DPRINTF("sio_setpar: setting bufsz is deprecated\n");
par->appbufsz = par->bufsz;
+ par->bufsz = ~0U;
}
if (par->rate != ~0U && par->appbufsz == ~0U)
par->appbufsz = par->rate * 200 / 1000;