diff options
author | Timo Sirainen <cras@irssi.org> | 2000-10-13 21:47:32 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-10-13 21:47:32 +0000 |
commit | 0ef25c9fb4666f0eb4bea19eace62479de2f6cab (patch) | |
tree | f52961442df570e300615bced8d9bbfa45840929 /src | |
parent | e51eba853af674bb6e77bb28996da8b81ec3c8b3 (diff) | |
download | irssi-0ef25c9fb4666f0eb4bea19eace62479de2f6cab.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/misc.c b/src/core/misc.c index 4cdcf4de..55f61dda 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -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); |