HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid call to strlen in fast_c_string_match_ignore_case.
[bpt/emacs.git]
/
src
/
ftfont.c
diff --git
a/src/ftfont.c
b/src/ftfont.c
index
8e32236
..
131a27f
100644
(file)
--- a/
src/ftfont.c
+++ b/
src/ftfont.c
@@
-598,7
+598,9
@@
ftfont_get_charset (Lisp_Object registry)
re[j] = '\0';
regexp = make_unibyte_string (re, j);
for (i = 0; fc_charset_table[i].name; i++)
re[j] = '\0';
regexp = make_unibyte_string (re, j);
for (i = 0; fc_charset_table[i].name; i++)
- if (fast_c_string_match_ignore_case (regexp, fc_charset_table[i].name) >= 0)
+ if (fast_c_string_match_ignore_case
+ (regexp, fc_charset_table[i].name,
+ strlen (fc_charset_table[i].name)) >= 0)
break;
if (! fc_charset_table[i].name)
return -1;
break;
if (! fc_charset_table[i].name)
return -1;