From fa9ac44852d26a11ef8a1c787faf4e6ed9a2f626 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 25 Feb 2022 14:31:23 +0000 Subject: [PATCH] Update: Avoid %s for charset in logging as it might be provided externally --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 7bcab4cb..e8655c74 100644 --- a/src/util.c +++ b/src/util.c @@ -1473,7 +1473,7 @@ char *util_conv_string (const char *string, const char *in_charset, const char * xmlBufferPtr utf8 = xmlBufferCreate (); xmlBufferPtr conv = xmlBufferCreate (); - ICECAST_LOG_INFO("converting metadata from %s to %s", in_charset, out_charset); + ICECAST_LOG_INFO("converting metadata from %#H to %#H", in_charset, out_charset); xmlBufferCCat (orig, string); if (xmlCharEncInFunc (in, utf8, orig) > 0) {