use initialSize
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 13:52:37 +0000 (15:52 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 13:52:37 +0000 (15:52 +0200)
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;
 }