mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
e51eba853a
commit
0ef25c9fb4
@ -454,6 +454,8 @@ int match_wildcards(const char *cmask, const char *data)
|
|||||||
if (p1 != NULL) *p1 = p1 == p2 ? '?' : '*';
|
if (p1 != NULL) *p1 = p1 == p2 ? '?' : '*';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (*mask == '*') mask++;
|
||||||
|
|
||||||
ret = data != NULL && *data == '\0' && *mask == '\0';
|
ret = data != NULL && *data == '\0' && *mask == '\0';
|
||||||
g_free(newmask);
|
g_free(newmask);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user