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

@ -117,13 +117,13 @@ static void parse_option(const char *option_str,
while (*ptr == '-')
++ptr;
strmake(option_name_buf, ptr, MAX_OPTION_LEN + 1);
strmake(option_name_buf, ptr, MAX_OPTION_LEN);
eq_pos= strchr(ptr, '=');
if (eq_pos)
{
option_name_buf[eq_pos - ptr]= 0;
strmake(option_value_buf, eq_pos + 1, MAX_OPTION_LEN + 1);
strmake(option_value_buf, eq_pos + 1, MAX_OPTION_LEN);
}
else
{