Skip to content

Commit bc07dbf

Browse files
committed
Fix off by one
1 parent 799153c commit bc07dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/plugins/bap-tracing/frame_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ FrameBuffer *frame_buffer_new(void) {
9797
}
9898

9999
bool frame_buffer_is_full(const FrameBuffer *buf) {
100-
return buf->idx + 1 >= frames_per_toc_entry;
100+
return buf->idx >= frames_per_toc_entry;
101101
}
102102

103103
void frame_buffer_close_frame(FrameBuffer *buf) {

0 commit comments

Comments
 (0)