diff -r 8ee818fa29f7 -r 81b2986d2b04 src/buffer.c --- a/src/buffer.c Tue Dec 10 00:09:55 2024 +0100 +++ b/src/buffer.c Tue Dec 10 00:19:45 2024 +0100 @@ -123,7 +123,7 @@ return -1; } - if (npos >= buffer->size) { + if (npos > buffer->size) { return -1; } else { buffer->pos = npos;