summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-19 18:17:27 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-11-19 18:17:27 +0000
commitf423b8258d64a1b6b923c1ca8b58f97f109166ed (patch)
tree4f32666e0a95671271160535dee1e2478cb6109f
parentc94510c25de948560f7a29199f6d7c92614eb434 (diff)
downloadmailutils-f423b8258d64a1b6b923c1ca8b58f97f109166ed.tar.gz
mailutils-f423b8258d64a1b6b923c1ca8b58f97f109166ed.tar.bz2
(i_ascii_casemap_contains): Fixed typecast.
-rw-r--r--libsieve/comparator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsieve/comparator.c b/libsieve/comparator.c
index 0f9187a19..dd23e1cb1 100644
--- a/libsieve/comparator.c
+++ b/libsieve/comparator.c
@@ -363,7 +363,7 @@ i_ascii_casemap_contains (const char *pattern, const char *text)
haystack = (const unsigned char *)text;
- if ((b = U (*(needle = (const unchar*)pattern))))
+ if ((b = U (*(needle = (const unsigned char*)pattern))))
{
haystack--;
do
@@ -438,7 +438,7 @@ i_ascii_casemap_matches (const char *pattern, const char *text)
int rc;
char *p = strdup (text);
_pattern_upcase (p, NULL);
- rc = fnmatch (pattern, text, 0) == 0;
+ rc = fnmatch (pattern, p, 0) == 0;
free (p);
return rc;
#endif

Return to:

Send suggestions and report system problems to the System administrator.