(i_ascii_casemap_contains): Fixed typecast.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment