whoops
This commit is contained in:
parent
761c019407
commit
13bcfc37f6
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ Queue *queue_new(size_t length, size_t element_size) {
|
|||
Queue *ret = malloc(sizeof(Queue));
|
||||
ret->back = 0;
|
||||
ret->front = 0;
|
||||
ret->length = length;
|
||||
ret->length = length + 1;
|
||||
ret->element_size = element_size;
|
||||
ret->data = malloc((length + 1) * sizeof(void*));
|
||||
|
||||
|
|
Loading…
Reference in a new issue