mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Manual merge.
This commit is contained in:
@ -808,7 +808,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
|
||||
&err_ptr, &err_len);
|
||||
if (err_len)
|
||||
{
|
||||
strmake(buff, err_ptr, min(sizeof(buff), err_len));
|
||||
strmake(buff, err_ptr, min(sizeof(buff) - 1, err_len));
|
||||
fprintf(stderr, "Invalid mode to --compatible: %s\n", buff);
|
||||
exit(1);
|
||||
}
|
||||
@ -4486,7 +4486,7 @@ static ulong find_set(TYPELIB *lib, const char *x, uint length,
|
||||
|
||||
for (; pos != end && *pos != ','; pos++) ;
|
||||
var_len= (uint) (pos - start);
|
||||
strmake(buff, start, min(sizeof(buff), var_len));
|
||||
strmake(buff, start, min(sizeof(buff) - 1, var_len));
|
||||
find= find_type(buff, lib, var_len);
|
||||
if (!find)
|
||||
{
|
||||
|
Reference in New Issue
Block a user