From 21a2bea746395e4c14bca5a5df1432afdb2da2c9 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Thu, 13 Jun 2019 00:44:41 -0300 Subject: [PATCH] Fixing previous commit --- src/stack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \