Skip to content
Snippets Groups Projects
Commit b9683179 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

A search requesting 'cn;lang-en-' did not find 'cn;lang-en'.

parent 44620410
Branches
Tags
No related merge requests found
......@@ -385,8 +385,11 @@ static int is_ad_sublang(
subdelimp = strchrlen( subp, ';', &sublen );
if( subdelimp ) subdelimp++;
if ((( suplen < sublen && supp[suplen-1] == '-' ) ||
suplen == sublen ) && strncmp( supp, subp, suplen ) == 0 )
if ( suplen > sublen
? ( suplen-1 == sublen && supp[suplen-1] == '-'
&& strncmp( supp, subp, sublen ) == 0 )
: ( ( suplen == sublen || supp[suplen-1] == '-' )
&& strncmp( supp, subp, suplen ) == 0 ) )
{
goto match;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment