diff options
author | Antoine Cellerier <dionoea@videolan.org> | 2008-06-10 15:38:55 +0000 |
---|---|---|
committer | Antoine Cellerier <dionoea@videolan.org> | 2008-06-10 15:38:55 +0000 |
commit | 239c8054ae955dac891ac1a5a9de1844bfbdfdc1 (patch) | |
tree | 9e0340cce4005d70826a513fd0f5779fd46d36e4 | |
parent | 8e7454cc73e1836a55a5c5c1405f2d5de9f98df0 (diff) | |
download | rockbox-239c8054ae955dac891ac1a5a9de1844bfbdfdc1.tar.gz rockbox-239c8054ae955dac891ac1a5a9de1844bfbdfdc1.zip |
Use strncasecmp for hash (string version) comparision.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17711 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/md5sum.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) | |||
138 | rb->write( out, ": ", 2 ); | 138 | rb->write( out, ": ", 2 ); |
139 | if( hash( string, filename ) ) | 139 | if( hash( string, filename ) ) |
140 | rb->write( out, "FAILED open or read", 19 ); | 140 | rb->write( out, "FAILED open or read", 19 ); |
141 | else if( rb->memcmp( line, string, MD5_STRING_LENGTH ) ) | 141 | else if( rb->strncasecmp( line, string, MD5_STRING_LENGTH ) ) |
142 | rb->write( out, "FAILED", 6 ); | 142 | rb->write( out, "FAILED", 6 ); |
143 | else | 143 | else |
144 | rb->write( out, "OK", 2 ); | 144 | rb->write( out, "OK", 2 ); |