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:
parent
eda547c86f
commit
05ed272c16
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user