From: David ‘Bombe’ Roden Date: Sat, 5 Jul 2008 13:52:37 +0000 (+0200) Subject: use initialSize X-Git-Tag: 0.1~47 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e4f6d56f27f3d7122a02237170f8d761cc1de56a;p=ecparse.git use initialSize --- 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; }