src/buffer.c

changeset 1007
81b2986d2b04
parent 1005
67fa386ce600
--- 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;

mercurial