1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +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

@@ -533,10 +533,10 @@ static int setup_windows_defaults()
return 1;
}
strmake(base_name, base_name_ptr, FN_REFLEN);
strmake(base_name, base_name_ptr, FN_REFLEN - 1);
*base_name_ptr= 0;
strmake(im_name, base_name, FN_REFLEN);
strmake(im_name, base_name, FN_REFLEN - 1);
ptr= strrchr(im_name, '.');
if (!ptr)