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:
@ -4286,7 +4286,7 @@ int validate_connection_name(ROUTER_INSTANCE* router, const std::string& name, c
|
|||||||
|
|
||||||
int index = -1;
|
int index = -1;
|
||||||
|
|
||||||
char custom_message[BINLOG_ERROR_MSG_LEN + 1];
|
char custom_message[BINLOG_ERROR_MSG_LEN];
|
||||||
|
|
||||||
const char* message = DEFAULT_MESSAGE;
|
const char* message = DEFAULT_MESSAGE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user