Remove trailing NULLs from throttling message

This commit is contained in:
Johan Wikman 2016-10-13 13:21:36 +03:00
parent db4b6793c4
commit ef5bbd9353

View File

@ -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);
}