Buffer allocator no longer dies lol

This commit is contained in:
Sasha Koshka 2023-11-06 03:04:38 -05:00
parent e6ca2a97fc
commit 57cbd2ca08

View File

@ -19,6 +19,7 @@ XmdBuffer *XmdBufferNew (size_t element) {
XmdBuffer *buffer = calloc(1, sizeof(XmdBuffer));
buffer->element = element;
buffer->capacity = 1;
buffer->data = calloc(buffer->capacity, buffer->element);
XmdBufferFit(buffer);
return buffer;
}