ref: a3f1beaff67872492d2612c60626d0d85033141a
parent: f9f2af282c6e7a01361b32671d72f456ca9be34b
author: Ori Bernstein <[email protected]>
date: Tue Dec 29 11:38:48 EST 2020
mbox: fix off by one in mesglineno assert The line numbers are one based, so we want to assert on '<=' instead of '<'.
--- a/mbox.c
+++ b/mbox.c
@@ -164,7 +164,7 @@
}
if(depth != nil)
*depth = d;
- assert(n + o < mbox.nmesg);
+ assert(n + o <= mbox.nmesg);
return n + o;
}