aboutsummaryrefslogtreecommitdiff
path: root/collections/vector/vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'collections/vector/vector.c')
-rw-r--r--collections/vector/vector.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/collections/vector/vector.c b/collections/vector/vector.c
index d87ae76..d40959d 100644
--- a/collections/vector/vector.c
+++ b/collections/vector/vector.c
@@ -81,6 +81,7 @@ vec *root;
root->base = realloc(root->base, root->limit * 2 * sizeof(void*));
assert(root->base);
+ root->limit *= 2;
}
vec* vec_cp(root)