From 577ee7ffbeac7bbbd9868645d94aaa4d9b1168b3 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Tue, 22 Jul 2025 16:28:47 +0200 Subject: [PATCH] refactor: const correctness Co-authored-by: Federico Di Pierro Signed-off-by: Samuel Gaist --- userspace/engine/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/engine/logger.cpp b/userspace/engine/logger.cpp index 340712aa..1ac1530e 100644 --- a/userspace/engine/logger.cpp +++ b/userspace/engine/logger.cpp @@ -128,7 +128,7 @@ void falco_logger::log(falco_logger::level priority, const std::string&& msg) { } } else { const struct tm* ltm = std::localtime(&result); - static char format[] = "WWW MMM DD HH:mm:ss YYYY"; + static const char format[] = "WWW MMM DD HH:mm:ss YYYY"; char tstr[sizeof(format)]; std::strftime(tstr, sizeof(tstr), format, ltm); fprintf(stderr, "%s: %s", tstr, copy.c_str());