From f0730dd4fd6683a8f07232ed88e94449773fb359 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Tue, 20 Feb 2024 17:06:40 +0100 Subject: [PATCH] fixed smol allocation size --- src/chat/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index be1e32b..afcc780 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -111,7 +111,7 @@ void append(char **destination, char *key, char *value) void add_brackets(char **json) { - char *output = why2_calloc(strlen(*json) + 3, sizeof(char)); + char *output = why2_calloc(strlen(*json) + 4, sizeof(char)); sprintf(output, "{%s}%c", *json, '\0');