summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-08-31 11:40:51 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-08-31 11:40:51 +0200
commita00a84ac13c702e001d61a32ac7d3ae22aec0af0 (patch)
treeb1b331a7c3bba9fecf19b764896060021dcfe74c /src/fat_dir.c
parent0568c0297ec02ad5ed63777b17e6999c17706132 (diff)
Less strict check on "." and ".." entries for FAT directory
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index 901495a..5709b13 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -386,7 +386,7 @@ static file_data_t *fat_dir(disk_t *disk_car, const partition_t *partition, dir_
}
if(stop==0 && nbr_cluster==0 &&
!(partition->upart_type==UP_FAT32 && first_cluster==0) &&
- memcmp(buffer_dir,". ",8+3)!=0)
+ !(buffer_dir[0]=='.' && buffer_dir[0x20]=='.' && buffer_dir[0x21]=='.'))
{
stop=1;
}