mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Merge from 5.0-bugteam local.
This commit is contained in:
commit
89cbe9156e
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ size_t unpack_dirname(char * to, const char *from)
|
|||
length-= (size_t) (suffix-buff)-1;
|
||||
if (length+(h_length= strlen(tilde_expansion)) <= FN_REFLEN)
|
||||
{
|
||||
if (tilde_expansion[h_length-1] == FN_LIBCHAR)
|
||||
if ((h_length > 0) && (tilde_expansion[h_length-1] == FN_LIBCHAR))
|
||||
h_length--;
|
||||
if (buff+h_length < suffix)
|
||||
bmove(buff+h_length,suffix,length);
|
||||
|
|
Loading…
Reference in a new issue