add frames vs bytes arithmetic in assert

This commit is contained in:
Alexandre Ratchov 2012-10-20 09:52:44 +02:00
parent 8ca941be6f
commit 708d668654
1 changed files with 1 additions and 1 deletions

View File

@ -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();