From 952658b2817688c646c1df2204652aad41cec860 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 27 Jan 2024 22:10:32 +0100 Subject: [PATCH] added null terminating char to add_brackets --- 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 fa372b3..e9149e5 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -112,7 +112,7 @@ void add_brackets(char **json) { char *output = why2_calloc(strlen(*json) + 3, sizeof(char)); - sprintf(output, "{%s}", *json); + sprintf(output, "{%s}%c", *json, '\0'); why2_deallocate(*json);