From 708d66865489be2f61ca64f29b0f2e410430bb59 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 20 Oct 2012 09:52:44 +0200 Subject: [PATCH] add frames vs bytes arithmetic in assert --- sndiod/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sndiod/sock.c b/sndiod/sock.c index 7945b93..a814484 100644 --- a/sndiod/sock.c +++ b/sndiod/sock.c @@ -504,7 +504,7 @@ sock_rdata(struct sock *f) * XXX: this can happen in MIDIOUT mode, since we dont * have flow control */ - if (count < f->rtodo) { + if (count * buf->bpf < f->rtodo) { sock_log(f); log_puts(": data read buffer overrun\n"); panic();