From 263f7e56496cb053436edeac6e271b1aca3fdcb2 Mon Sep 17 00:00:00 2001 From: anon Date: Tue, 5 Sep 2023 19:06:22 +0200 Subject: [PATCH] cast calloc --- src/readline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readline.c b/src/readline.c index ee1794b..a7b4dfb 100644 --- a/src/readline.c +++ b/src/readline.c @@ -95,7 +95,7 @@ static void callback_handler(char *line) { } break; case INPUT_CHANGE_TO: { strncpy(newpat, line, PATLEN); - change = calloc(totallines, sizeof(*change)); + change = (bool *)calloc(totallines, sizeof(*change)); input_mode = INPUT_CHANGE; force_window(); } return;