mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue