From e4f6d56f27f3d7122a02237170f8d761cc1de56a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 5 Jul 2008 15:52:37 +0200 Subject: [PATCH] use initialSize --- GrowingBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GrowingBuffer.cpp b/GrowingBuffer.cpp index b5dea96..e73350f 100644 --- a/GrowingBuffer.cpp +++ b/GrowingBuffer.cpp @@ -8,8 +8,8 @@ #include "GrowingBuffer.h" GrowingBuffer::GrowingBuffer(size_t initialSize) { - this->data = malloc(1024); - this->size = 1024; + this->data = malloc(initialSize); + this->size = initialSize; this->limit = 0; this->position = 0; } -- 2.7.4