summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sndiod/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sndiod/sock.c b/usr.bin/sndiod/sock.c
index a552190795a..62c3c96b186 100644
--- a/usr.bin/sndiod/sock.c
+++ b/usr.bin/sndiod/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.7 2013/11/18 17:37:45 ratchov Exp $ */
+/* $OpenBSD: sock.c,v 1.8 2013/12/31 12:24:55 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -767,7 +767,7 @@ sock_setpar(struct sock *f)
max = 1 + rate / d->round;
min *= s->round;
max *= s->round;
- appbufsz += s->round - 1;
+ appbufsz += s->round / 2;
appbufsz -= appbufsz % s->round;
if (appbufsz < min)
appbufsz = min;