projects
/
ecparse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d1d260
)
use initialSize
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Sat, 5 Jul 2008 13:52:37 +0000
(15:52 +0200)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Sat, 5 Jul 2008 13:52:37 +0000
(15:52 +0200)
GrowingBuffer.cpp
patch
|
blob
|
history
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;
}