Buffer allocator no longer dies lol
This commit is contained in:
parent
e6ca2a97fc
commit
57cbd2ca08
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user