From 239c8054ae955dac891ac1a5a9de1844bfbdfdc1 Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Tue, 10 Jun 2008 15:38:55 +0000 Subject: [PATCH] Use strncasecmp for hash (string version) comparision. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17711 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/md5sum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/md5sum.c b/apps/plugins/md5sum.c index 1c27fe53ac..e5149a641e 100644 --- a/apps/plugins/md5sum.c +++ b/apps/plugins/md5sum.c @@ -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 );