changeset 1869:17d9a15eab14

* src/fatfs_supp.c: Fixed FAT12/16 root dir size checking in read_next_raw_dentry - reported by Stephane Royo.
author asl
date Wed, 19 Jan 2005 20:27:09 +0000
parents 3df9bc847a78
children f610eb62ce8a
files packages/fs/fat/current/ChangeLog packages/fs/fat/current/src/fatfs_supp.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/fs/fat/current/ChangeLog
+++ b/packages/fs/fat/current/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-18  Savin Zlobec  <savin@elatec.si>
+
+	* src/fatfs_supp.c:
+	Fixed FAT12/16 root dir size checking in read_next_raw_dentry - 
+	reported by Stephane Royo.
+
 2004-12-13  John Dallaway  <jld@ecoscentric.com>
 
 	* tests/fileio1.c: Rename to fatfs1.c. eCos test names should be
--- a/packages/fs/fat/current/src/fatfs_supp.c
+++ b/packages/fs/fat/current/src/fatfs_supp.c
@@ -1491,7 +1491,7 @@ read_next_raw_dentry(fatfs_disk_t       
         // FAT12/16 root dir check
         if (0 == pos->cluster) 
         {
-            if (pos->cluster_pos >= disk->fat_root_dir_nents)
+            if (pos->cluster_pos >= disk->fat_root_dir_size)
                 err = EEOF;
         }
         else