mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
strmake_buf(X,Y) helper, equivalent to strmake(X,Y,sizeof(X)-1)
with a bit of lame protection against abuse.
This commit is contained in:
@@ -2097,7 +2097,7 @@ handle_condition(THD *,
|
||||
{
|
||||
*cond_hdl= NULL;
|
||||
/* Grab the error message */
|
||||
strmake(buff, msg, sizeof(buff)-1);
|
||||
strmake_buf(buff, msg);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user