Fixed missing wildcard character from regex string.

This commit is contained in:
Markus Makela
2015-04-06 06:10:17 +03:00
parent 2a416a8cba
commit 0e2d11e487

View File

@ -2140,7 +2140,9 @@ int add_wildcard_users(USERS *users, char* name, char* host, char* password, cha
while(ptr)
{
memmove(ptr,ptr+1,(len - (ptr - restr)) + 1);
memmove(ptr+1,ptr,(len - (ptr - restr)) + 1);
*ptr++ = '.';
*ptr = '*';
len = strlen(restr);
ptr = strchr(restr,'%');
}