use initialSize
[ecparse.git] / GrowingBuffer.cpp
index b5dea96..e73350f 100644 (file)
@@ -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;
 }