diff --git a/src/type1/t1afm.c b/src/type1/t1afm.c index 219e81a7b..d9b9398b0 100644 --- a/src/type1/t1afm.c +++ b/src/type1/t1afm.c @@ -69,8 +69,8 @@ if ( gname && gname[0] == name[0] && - ft_strncmp( gname, name, len ) == 0 && - gname[len] == 0 ) + ft_strlen( gname ) == len && + ft_strncmp( gname, name, len ) == 0 ) return n; }