From 1ff08c018918b210d151cb38d91da1959c0d2bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 11 Aug 2018 13:02:15 +0300 Subject: [PATCH] Allocate smaller buffer by default --- convert_to_ints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert_to_ints.c b/convert_to_ints.c index 2094d56..32de1be 100644 --- a/convert_to_ints.c +++ b/convert_to_ints.c @@ -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;