From: RĂ©mi Denis-Courmont Date: Tue, 12 Jul 2005 18:01:14 +0000 (+0000) Subject: Yet another strncmp => memcmp (refs #258) X-Git-Tag: 0.8.4~1262 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=964728f3ef4c177e69d98fac1c55eea83ef60b51;p=vlc Yet another strncmp => memcmp (refs #258) --- diff --git a/src/misc/iso_lang.c b/src/misc/iso_lang.c index 91893ebbf4..ccbc7050eb 100644 --- a/src/misc/iso_lang.c +++ b/src/misc/iso_lang.c @@ -54,7 +54,7 @@ const char * DecodeLanguage( uint16_t i_code ) 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( *p_lang->psz_native_name )