Fix format-truncation warnings in blr

The custom message must be smaller than the actual message to guarantee no
truncation takes place.
This commit is contained in:
Markus Mäkelä 2019-05-27 03:23:27 +03:00
parent eda547c86f
commit 05ed272c16
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -4286,7 +4286,7 @@ int validate_connection_name(ROUTER_INSTANCE* router, const std::string& name, c
int index = -1;
char custom_message[BINLOG_ERROR_MSG_LEN + 1];
char custom_message[BINLOG_ERROR_MSG_LEN];
const char* message = DEFAULT_MESSAGE;