diff options
author | bloodstalker <thabogre@gmail.com> | 2018-09-20 11:45:24 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-09-20 11:45:24 +0000 |
commit | a9ba7c19941ae6b47390a8f130a80edc4bad1df7 (patch) | |
tree | 49fbb55e19863d1edce44e5c3269579ec2abee3c /text.py | |
parent | added a new option --calloc. lets you choose whether to use caloc or malloc (diff) | |
download | faultreiber-a9ba7c19941ae6b47390a8f130a80edc4bad1df7.tar.gz faultreiber-a9ba7c19941ae6b47390a8f130a80edc4bad1df7.zip |
fixes #5
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"); |