From ef5bbd935335ec9425758f3c929117c51fbd2d72 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Thu, 13 Oct 2016 13:21:36 +0300 Subject: [PATCH] Remove trailing NULLs from throttling message --- server/core/log_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/log_manager.cc b/server/core/log_manager.cc index bd4eeb58c..ddcbcd1e5 100644 --- a/server/core/log_manager.cc +++ b/server/core/log_manager.cc @@ -2942,7 +2942,7 @@ int mxs_log_message(int priority, if (status == MESSAGE_SUPPRESSED) { suppression_len += sizeof(SUPPRESSION) - 1; // Remove trailing NULL - suppression_len += 3; // Remove the %lu + suppression_len -= 3; // Remove the %lu suppression_len += UINTLEN(suppress_ms); }