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