Allocate smaller buffer by default

This commit is contained in:
Juhani Krekelä 2018-08-11 13:02:15 +03:00
parent 465f879437
commit 1ff08c0189

View file

@ -50,7 +50,7 @@ MAYBE(intmax_t_array) convert_to_numbers(char *line) {
struct intmax_t_array numbers;
numbers.length = 0;
numbers.alloc_size = 64 * sizeof(intmax_t);
numbers.alloc_size = 8 * sizeof(intmax_t);
numbers.data = TRY_MALLOC(numbers.alloc_size * sizeof(intmax_t));
char *strtok_saveptr = NULL;