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);