summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-04 20:45:29 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-04 20:45:29 +0100
commitd515025b35b1d0fdbc0e1df74a0dffd06a9cc954 (patch)
tree7d51c95a7cbc9733e98b30d41b918d1f7ee94c62 /src
parent6c898ad82994fcaa7fe64cfe10774994a4587ca7 (diff)
how did this even work
Diffstat (limited to 'src')
-rw-r--r--src/memory_bucket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memory_bucket.cpp b/src/memory_bucket.cpp
index 1d8b638..0d163d0 100644
--- a/src/memory_bucket.cpp
+++ b/src/memory_bucket.cpp
@@ -35,7 +35,7 @@ void* ts_memory_bucket_reserve(ts_memory_bucket *bucket, int reserve_length)
ts_memory_bucket_entry new_bucket;
new_bucket.data = (char*)malloc(bucket_entry->length);
new_bucket.length = bucket_entry->length;
- new_bucket.cursor = 0;
+ new_bucket.cursor = reserve_length;
ts_array_push(&bucket->buckets, &new_bucket);
ts_mutex_unlock(&bucket->bucket_mutex);