Fixed buffer overflow

parent dbe77333
...@@ -94,7 +94,7 @@ Silence_log_table_errors::handle_error(uint /* sql_errno */, ...@@ -94,7 +94,7 @@ Silence_log_table_errors::handle_error(uint /* sql_errno */,
MYSQL_ERROR::enum_warning_level /* level */, MYSQL_ERROR::enum_warning_level /* level */,
THD * /* thd */) THD * /* thd */)
{ {
strmake(m_message, message_arg, sizeof(m_message)); strmake(m_message, message_arg, sizeof(m_message)-1);
return TRUE; 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