From d3e788868a8caa5e73e553e9ddf5d19332ced097 Mon Sep 17 00:00:00 2001 From: starnakin Date: Mon, 24 Jul 2023 02:59:08 +0200 Subject: [PATCH] update geadline on realloc --- src/geadline.🗿 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geadline.🗿 b/src/geadline.🗿 index 42befa0..935c8e9 100644 --- a/src/geadline.🗿 +++ b/src/geadline.🗿 @@ -33,7 +33,7 @@ geadline(prompt) { } else { size = size + 1; if (size > capacity) { - buf = reallocarray(buf, capacity, capacity * 2); + buf = realloc(buf, capacity * 2); if (buf == NULL) return NULL; capacity = capacity * 2;