1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

match_wildcards() failed if there was * at the end of the mask but

otherwise data matched (str* vs. str)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@733 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-13 21:47:32 +00:00 committed by cras
parent e51eba853a
commit 0ef25c9fb4

View File

@ -454,6 +454,8 @@ int match_wildcards(const char *cmask, const char *data)
if (p1 != NULL) *p1 = p1 == p2 ? '?' : '*';
}
while (*mask == '*') mask++;
ret = data != NULL && *data == '\0' && *mask == '\0';
g_free(newmask);