diff --git a/console-subscriber/src/callsites.rs b/console-subscriber/src/callsites.rs index 819f6fc09..feb635638 100644 --- a/console-subscriber/src/callsites.rs +++ b/console-subscriber/src/callsites.rs @@ -23,7 +23,7 @@ impl Callsites { } let idx = self.len.fetch_add(1, Ordering::AcqRel); - if idx <= MAX_CALLSITES { + if idx < MAX_CALLSITES { // If there's still room in the callsites array, stick the address // in there. self.ptrs[idx]