summaryrefslogtreecommitdiffstats
path: root/src/fat.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-11-21 08:45:54 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-11-21 08:45:54 +0100
commit3a6099acd37a55e9decc6a5a2688e60a6f6b264f (patch)
tree434a187a939ee909b8cd1ae8cc3e8c867a6be2ac /src/fat.c
parent6b51c69a7b4efc77cce5627725653e0d0b112ade (diff)
Fix fat32_get_prev_cluster and FAT code cleanup
Diffstat (limited to 'src/fat.c')
-rw-r--r--src/fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat.c b/src/fat.c
index 7691bed..6e3335d 100644
--- a/src/fat.c
+++ b/src/fat.c
@@ -491,7 +491,7 @@ unsigned int fat32_get_prev_cluster(disk_t *disk_car,const partition_t *partitio
offset_o=prev_cluster%(disk_car->sector_size/4);
if((offset_o==0)||(prev_cluster==2))
{
- if(disk_car->read(disk_car,disk_car->sector_size, &buffer, hd_offset)!=0)
+ if(disk_car->read(disk_car,disk_car->sector_size, buffer, hd_offset)!=0)
{
log_error("fat32_get_prev_cluster error\n"); return 0;
}