Commit 964728f3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Yet another strncmp => memcmp (refs #258)

parent d73832f9
...@@ -54,7 +54,7 @@ const char * DecodeLanguage( uint16_t i_code ) ...@@ -54,7 +54,7 @@ const char * DecodeLanguage( uint16_t i_code )
for( p_lang = p_languages; p_lang->psz_eng_name; p_lang++ ) for( p_lang = p_languages; p_lang->psz_eng_name; p_lang++ )
{ {
if( !strncmp( p_lang->psz_iso639_1, psz_code, 2 ) ) if( !memcmp( p_lang->psz_iso639_1, psz_code, 2 ) )
{ {
# if 0 # if 0
if( *p_lang->psz_native_name ) if( *p_lang->psz_native_name )
......
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