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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user