Use strncasecmp for hash (string version) comparision.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17711 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Antoine Cellerier 2008-06-10 15:38:55 +00:00
parent 8e7454cc73
commit 239c8054ae

View file

@ -138,7 +138,7 @@ void hash_check( int out, const char *path )
rb->write( out, ": ", 2 );
if( hash( string, filename ) )
rb->write( out, "FAILED open or read", 19 );
else if( rb->memcmp( line, string, MD5_STRING_LENGTH ) )
else if( rb->strncasecmp( line, string, MD5_STRING_LENGTH ) )
rb->write( out, "FAILED", 6 );
else
rb->write( out, "OK", 2 );