Fix returned buffer free space.

release-1.5.4.branch
Vreixo Formoso 15 years ago
parent be43181505
commit 39a1493bcd

@ -319,7 +319,7 @@ int iso_ring_buffer_get_status(struct burn_source *b, size_t *size,
*size = buf->cap;
}
if (free_bytes) {
*free_bytes = buf->size;
*free_bytes = buf->cap - buf->size;
}
ret = (buf->rend + 1) + (buf->wend ? 4 : 0);

Loading…
Cancel
Save