diff --git a/lab01/zad1/src/queue.c b/lab01/zad1/src/queue.c index 3e5a7bd..19cb6b6 100644 --- a/lab01/zad1/src/queue.c +++ b/lab01/zad1/src/queue.c @@ -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*));