projects
/
ecparse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use initialSize
[ecparse.git]
/
GrowingBuffer.cpp
diff --git
a/GrowingBuffer.cpp
b/GrowingBuffer.cpp
index
b5dea96
..
e73350f
100644
(file)
--- 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;
}