summaryrefslogtreecommitdiffstats
path: root/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'buf.c')
-rw-r--r--buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buf.c b/buf.c
index 145de28f..6ed1e2b9 100644
--- a/buf.c
+++ b/buf.c
@@ -142,7 +142,7 @@ static void buf_grow(struct buf *b, val init_val, val self)
while (size < len) {
cnum delta = size / 4;
if (INT_PTR_MAX - delta >= size)
- size += size / 4;
+ size += delta;
else
size = len;
}