aboutsummaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-09-20 11:45:24 +0000
committerbloodstalker <thabogre@gmail.com>2018-09-20 11:45:24 +0000
commita9ba7c19941ae6b47390a8f130a80edc4bad1df7 (patch)
tree49fbb55e19863d1edce44e5c3269579ec2abee3c /text.py
parentadded a new option --calloc. lets you choose whether to use caloc or malloc (diff)
downloadfaultreiber-a9ba7c19941ae6b47390a8f130a80edc4bad1df7.tar.gz
faultreiber-a9ba7c19941ae6b47390a8f130a80edc4bad1df7.zip
fixes #5
Diffstat (limited to 'text.py')
-rw-r--r--text.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/text.py b/text.py
index bfc2d54..5820473 100644
--- a/text.py
+++ b/text.py
@@ -85,11 +85,11 @@ int32_t read_until_delimiter(int _fd, uint8_t delimiter) {
c_void_manager = """
void void_manager(void* ptr, void*** void_train, uint64_t* current_void_size, uint64_t* current_void_count) {
if (*current_void_size == 0) {
- *void_train = CCC(100*sizeof(void*));
- *current_void_size = 100;
+ *void_train = CCC(XXX*sizeof(void*));
+ *current_void_size = XXX;
}
if (*current_void_count == *current_void_size) {
- *current_void_size*=2;
+ *current_void_size*=YYY;
*void_train = realloc(*void_train, *current_void_size*sizeof(void*));
if (*void_train == NULL) {
printf("void train couldnt allocate more memory.\\n");