Commit 9ed8a0c1 authored by Sam Hocevar's avatar Sam Hocevar

* src/misc/charset.c: if(a<b<c) is a pythonism and doesn't work in C.

parent 07d9dbd1
......@@ -213,7 +213,8 @@ static char *vlc_encoding_from_locale( char *psz_locale )
if( psz_modifier == NULL )
return psz_dot;
if( 0 < ( psz_modifier - psz_dot ) < sizeof( buf ))
if( 0 < ( psz_modifier - psz_dot )
&& ( psz_modifier - psz_dot ) < sizeof( buf ))
{
memcpy( buf, psz_dot, psz_modifier - psz_dot );
buf[ psz_modifier - psz_dot ] = '\0';
......
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