summaryrefslogtreecommitdiffstats
path: root/src/fat.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-12-05 00:12:33 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-12-05 00:12:33 +0100
commit1bdf5e342ac5cc669e96bc22f63d134f8b8f0b51 (patch)
tree2db9953ac467239a46e87f13e4004c3e171e82d7 /src/fat.c
parente51a1174a3bb4a68dab4d41019b91d092a84c498 (diff)
Fix some FAT & NTFS read/write
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 6e3335d..db793bb 100644
--- a/src/fat.c
+++ b/src/fat.c
@@ -466,7 +466,7 @@ int set_next_cluster(disk_t *disk_car,const partition_t *partition, const upart_
default: /* Avoid compiler warning */
break;
}
- if(disk_car->write(disk_car,buffer_size, &buffer, partition->part_offset+(uint64_t)(offset+offset_s)*disk_car->sector_size)!=0)
+ if(disk_car->write(disk_car,buffer_size, buffer, partition->part_offset+(uint64_t)(offset+offset_s)*disk_car->sector_size)!=0)
{
display_message("Write error: set_next_cluster write error\n");
free(buffer);