mirror of https://github.com/freetype/freetype
* src/type1/t1afm.c (t1_get_index): Avoid `strlen` call.
Instead, we check the terminal zero.
This commit is contained in:
parent
68f1b93247
commit
8ed6d97446
|
@ -69,8 +69,8 @@
|
|||
|
||||
|
||||
if ( gname && gname[0] == name[0] &&
|
||||
ft_strlen( gname ) == len &&
|
||||
ft_strncmp( gname, name, len ) == 0 )
|
||||
ft_strncmp( gname, name, len ) == 0 &&
|
||||
gname[len] == 0 )
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue