summaryrefslogtreecommitdiffstats
path: root/src/fatx.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/fatx.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/fatx.c')
-rw-r--r--src/fatx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fatx.c b/src/fatx.c
index 02f9750..cb6fe55 100644
--- a/src/fatx.c
+++ b/src/fatx.c
@@ -45,7 +45,7 @@ static int test_fatx(disk_t *disk_car, const struct disk_fatx *fatx_block,partit
int check_FATX(disk_t *disk_car,partition_t *partition,const int verbose)
{
unsigned char buffer[8*DEFAULT_SECTOR_SIZE];
- if(disk_car->read(disk_car,sizeof(buffer), &buffer, partition->part_offset)!=0)
+ if(disk_car->pread(disk_car, &buffer, sizeof(buffer), partition->part_offset) != sizeof(buffer))
{ return 1; }
if(test_fatx(disk_car,(const struct disk_fatx *)&buffer,partition,verbose,0)!=0)
return 1;