From 0b848d655ff7e5bd77de06f6793d3b35bd66485b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 17 Sep 2022 14:57:05 +0100 Subject: [PATCH] [Minor] Fix warning --- src/client/rspamc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx index cb847bf5b..9719445b6 100644 --- a/src/client/rspamc.cxx +++ b/src/client/rspamc.cxx @@ -1034,8 +1034,8 @@ rspamc_symbols_output(FILE *out, ucl_object_t *obj) fmt::print(out, "Message - {}: {}\n", ucl_object_key(cmesg), ucl_object_tostring(cmesg)); } else { - unsigned char *rendered_message; - rendered_message = ucl_object_emit(cmesg, UCL_EMIT_JSON_COMPACT); + char *rendered_message; + rendered_message = (char *)ucl_object_emit(cmesg, UCL_EMIT_JSON_COMPACT); fmt::print(out, "Message - {}: {:.60}\n", ucl_object_key(cmesg), rendered_message); free(rendered_message); -- 2.39.5