Commit f3c63615 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-4734 Adding ending / to a directory can fail when the directory ends with 0

+1 typo fixed
parent 1c6394e5
......@@ -98,8 +98,8 @@ static char *directory_file_name (char * dst, const char *src)
if (src[0] == 0)
src= (char*) "."; /* Use empty as current */
end=strmov(dst, src);
if (end[-1] != FN_LIBCHAR + 1)
end= strnmov(dst, src, FN_REFLEN + 1);
if (end[-1] != FN_LIBCHAR)
{
*end++= FN_LIBCHAR; /* Add last '/' */
*end='\0';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment