From: Vsevolod Stakhov Date: Sat, 17 Sep 2022 13:57:05 +0000 (+0100) Subject: [Minor] Fix warning X-Git-Tag: 3.3~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b848d655ff7e5bd77de06f6793d3b35bd66485b;p=rspamd.git [Minor] Fix warning --- 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);