Commit f423b825 f423b8258d64a1b6b923c1ca8b58f97f109166ed by Sergey Poznyakoff

(i_ascii_casemap_contains): Fixed typecast.

1 parent c94510c2
...@@ -363,7 +363,7 @@ i_ascii_casemap_contains (const char *pattern, const char *text) ...@@ -363,7 +363,7 @@ i_ascii_casemap_contains (const char *pattern, const char *text)
363 363
364 haystack = (const unsigned char *)text; 364 haystack = (const unsigned char *)text;
365 365
366 if ((b = U (*(needle = (const unchar*)pattern)))) 366 if ((b = U (*(needle = (const unsigned char*)pattern))))
367 { 367 {
368 haystack--; 368 haystack--;
369 do 369 do
...@@ -438,7 +438,7 @@ i_ascii_casemap_matches (const char *pattern, const char *text) ...@@ -438,7 +438,7 @@ i_ascii_casemap_matches (const char *pattern, const char *text)
438 int rc; 438 int rc;
439 char *p = strdup (text); 439 char *p = strdup (text);
440 _pattern_upcase (p, NULL); 440 _pattern_upcase (p, NULL);
441 rc = fnmatch (pattern, text, 0) == 0; 441 rc = fnmatch (pattern, p, 0) == 0;
442 free (p); 442 free (p);
443 return rc; 443 return rc;
444 #endif 444 #endif
......