summaryrefslogtreecommitdiffstats
path: root/src/hfs.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/hfs.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/hfs.c')
-rw-r--r--src/hfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hfs.c b/src/hfs.c
index 845e227..4b0e09d 100644
--- a/src/hfs.c
+++ b/src/hfs.c
@@ -40,7 +40,7 @@ static int set_HFS_info(partition_t *partition, const hfs_mdb_t *hfs_mdb);
int check_HFS(disk_t *disk_car,partition_t *partition,const int verbose)
{
unsigned char *buffer=(unsigned char*)MALLOC(HFS_SUPERBLOCK_SIZE);
- if(disk_car->read(disk_car,HFS_SUPERBLOCK_SIZE, buffer, partition->part_offset+0x400)!=0)
+ if(disk_car->pread(disk_car, buffer, HFS_SUPERBLOCK_SIZE, partition->part_offset + 0x400) != HFS_SUPERBLOCK_SIZE)
{
free(buffer);
return 1;