From 0ef25c9fb4666f0eb4bea19eace62479de2f6cab Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 13 Oct 2000 21:47:32 +0000 Subject: [PATCH] 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 --- src/core/misc.c | 2 ++ 1 file changed, 2 insertions(+) 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);