1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#48983: Bad strmake calls (length one too long)

MySQL 5.1 specific fixes.
This commit is contained in:
Davi Arnaut
2009-12-18 17:14:09 -02:00
parent 61ae928898
commit 25be2b28d1
4 changed files with 6 additions and 6 deletions

View File

@ -2084,7 +2084,7 @@ static int check_func_set(THD *thd, struct st_mysql_sys_var *var,
&error, &error_len, &not_used);
if (error_len)
{
strmake(buff, error, min(sizeof(buff), error_len));
strmake(buff, error, min(sizeof(buff) - 1, error_len));
strvalue= buff;
goto err;
}