* src/type1/t1afm.c (t1_get_index): Avoid `strlen` call.

Instead, we check the terminal zero.
This commit is contained in:
Alexei Podtelezhnikov 2023-09-09 15:13:55 -04:00
parent 68f1b93247
commit 8ed6d97446
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}