mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-4734 Adding ending / to a directory can fail when the directory ends with 0
+1 typo fixed
This commit is contained in:
parent
1c6394e503
commit
f3c63615d8
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue