Commit 7069874d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

language tag fix

parent ad0f8e8e
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment