summaryrefslogtreecommitdiffstats
path: root/src/ufs.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/ufs.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/ufs.c')
-rw-r--r--src/ufs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ufs.c b/src/ufs.c
index 84d1a01..452d40f 100644
--- a/src/ufs.c
+++ b/src/ufs.c
@@ -46,7 +46,7 @@ int check_ufs(disk_t *disk_car,partition_t *partition,const int verbose)
unsigned char *buffer;
buffer=(unsigned char*)MALLOC(UFS_SUPERBLOCK_SIZE);
sb=(const struct ufs_super_block*)buffer;
- if(disk_car->read(disk_car,UFS_SUPERBLOCK_SIZE, buffer, partition->part_offset+UFS_SBLOCK)!=0)
+ if(disk_car->pread(disk_car, buffer, UFS_SUPERBLOCK_SIZE, partition->part_offset + UFS_SBLOCK) != UFS_SUPERBLOCK_SIZE)
{
free(buffer);
return 1;