mirror of https://github.com/ericonr/sndio.git
add frames vs bytes arithmetic in assert
This commit is contained in:
parent
8ca941be6f
commit
708d668654
|
@ -504,7 +504,7 @@ sock_rdata(struct sock *f)
|
||||||
* XXX: this can happen in MIDIOUT mode, since we dont
|
* XXX: this can happen in MIDIOUT mode, since we dont
|
||||||
* have flow control
|
* have flow control
|
||||||
*/
|
*/
|
||||||
if (count < f->rtodo) {
|
if (count * buf->bpf < f->rtodo) {
|
||||||
sock_log(f);
|
sock_log(f);
|
||||||
log_puts(": data read buffer overrun\n");
|
log_puts(": data read buffer overrun\n");
|
||||||
panic();
|
panic();
|
||||||
|
|
Loading…
Reference in New Issue