summaryrefslogtreecommitdiffstats
path: root/src/ntfs_adv.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/ntfs_adv.c
parente51a1174a3bb4a68dab4d41019b91d092a84c498 (diff)
Fix some FAT & NTFS read/write
Diffstat (limited to 'src/ntfs_adv.c')
-rw-r--r--src/ntfs_adv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ntfs_adv.c b/src/ntfs_adv.c
index 1f682b1..658c9f4 100644
--- a/src/ntfs_adv.c
+++ b/src/ntfs_adv.c
@@ -133,11 +133,11 @@ static void menu_write_ntfs_boot_sector_cli(disk_t *disk_car, partition_t *parti
{
log_info("Write new boot!\n");
/* Write boot sector and backup boot sector */
- if(disk_car->write(disk_car,NTFS_SECTOR_SIZE, &newboot, partition->part_offset))
+ if(disk_car->write(disk_car,NTFS_SECTOR_SIZE, newboot, partition->part_offset))
{
display_message("Write error: Can't write new NTFS boot sector\n");
}
- if(disk_car->write(disk_car,NTFS_SECTOR_SIZE, &newboot, partition->part_offset+partition->part_size-disk_car->sector_size)!=0)
+ if(disk_car->write(disk_car,NTFS_SECTOR_SIZE, newboot, partition->part_offset+partition->part_size-disk_car->sector_size)!=0)
{
display_message("Write error: Can't write new NTFS backup boot sector\n");
}
@@ -201,11 +201,11 @@ static void menu_write_ntfs_boot_sector_ncurses(disk_t *disk_car, partition_t *p
{
log_info("Write new boot!\n");
/* Write boot sector and backup boot sector */
- if(disk_car->write(disk_car,NTFS_SECTOR_SIZE, &newboot, partition->part_offset))
+ if(disk_car->write(disk_car,NTFS_SECTOR_SIZE, newboot, partition->part_offset))
{
display_message("Write error: Can't write new NTFS boot sector\n");
}
- if(disk_car->write(disk_car,NTFS_SECTOR_SIZE, &newboot, partition->part_offset+partition->part_size-disk_car->sector_size)!=0)
+ if(disk_car->write(disk_car,NTFS_SECTOR_SIZE, newboot, partition->part_offset+partition->part_size-disk_car->sector_size)!=0)
{
display_message("Write error: Can't write new NTFS backup boot sector\n");
}