diff options
Diffstat (limited to 'core/tokbuf.c')
| -rw-r--r-- | core/tokbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/tokbuf.c b/core/tokbuf.c index e880c15..05e8755 100644 --- a/core/tokbuf.c +++ b/core/tokbuf.c @@ -30,7 +30,7 @@ tokbuf_push(struct tokbuf *tokbuf, struct token *tok) return -1; } - if ((tokbuf->head++) >= TOKBUF_CAP) { + if ((tokbuf->head++) >= TOKBUF_CAP - 1) { tokbuf->head = 0; } |
