Commit a7df0e2d authored by unknown's avatar unknown

Fixed buffer overflow

parent 1e2a9caf
......@@ -94,7 +94,7 @@ Silence_log_table_errors::handle_error(uint /* sql_errno */,
MYSQL_ERROR::enum_warning_level /* level */,
THD * /* thd */)
{
strmake(m_message, message_arg, sizeof(m_message));
strmake(m_message, message_arg, sizeof(m_message)-1);
return TRUE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment