diff packages/fs/rom/current/src/romfs.c @ 3009:a2b177b28c45

* src/romfs.c: file name comparison was broken for two files with the same stem. A directory/file called "foo" would not be found if there was a file "foo*" before "foo".
author sergeig
date Wed, 10 Mar 2010 18:06:22 +0000
parents 74dbf4c3f2e1
children 8d5bed76c596
line wrap: on
line diff
--- a/packages/fs/rom/current/src/romfs.c
+++ b/packages/fs/rom/current/src/romfs.c
@@ -336,7 +336,7 @@ static bool match( const char *a, const 
 {
     for ( ; len > 0 && *a && *b && *a == *b ; a++, b++, len-- )
 	;
-    return ( len == 0 );
+    return ( len == 0 && *a == 0 );
 }