diff --git a/src/stack.h b/src/stack.h index e3879d2..7aca615 100644 --- a/src/stack.h +++ b/src/stack.h @@ -144,7 +144,7 @@ return NULL; \ } \ \ - memset(_stack_->buffer, 0, sizeof(V) * size); \ + memset(_stack_->buffer, 0, sizeof(V) * capacity); \ \ _stack_->capacity = capacity; \ _stack_->count = 0; \