summaryrefslogtreecommitdiffstats
path: root/src/ntfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-31 17:07:08 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-31 17:07:08 +0100
commit56d98fd7a229c8839a364a8a194c89c8fa650fff (patch)
treefabc87d58b2ea35831496d5f9762f6b64b481072 /src/ntfs.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/ntfs.c')
-rw-r--r--src/ntfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ntfs.c b/src/ntfs.c
index 9691603..d12debf 100644
--- a/src/ntfs.c
+++ b/src/ntfs.c
@@ -58,7 +58,7 @@ int check_NTFS(disk_t *disk_car,partition_t *partition,const int verbose,const i
{
unsigned char *buffer=(unsigned char*)MALLOC(DEFAULT_SECTOR_SIZE);
/* log_trace("check_NTFS part_offset=%llu\n",(long long unsigned)partition->part_offset); */
- if(disk_car->read(disk_car,DEFAULT_SECTOR_SIZE, buffer, partition->part_offset)!=0)
+ if(disk_car->pread(disk_car, buffer, DEFAULT_SECTOR_SIZE, partition->part_offset) != DEFAULT_SECTOR_SIZE)
{
free(buffer);
return 1;
@@ -424,7 +424,7 @@ static int ntfs_read_MFT(disk_t *disk_car, partition_t *partition, const struct
return 1;
}
buffer=(unsigned char *)MALLOC(mft_size);
- if(disk_car->read(disk_car,mft_size, buffer, mft_pos)!=0)
+ if(disk_car->pread(disk_car, buffer, mft_size, mft_pos) != mft_size)
{
log_error("NTFS: Can't read MFT\n");
free(buffer);