summaryrefslogtreecommitdiffstats
path: root/src/netware.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/netware.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/netware.c')
-rw-r--r--src/netware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netware.c b/src/netware.c
index a5fae4f..5c7bb8c 100644
--- a/src/netware.c
+++ b/src/netware.c
@@ -47,7 +47,7 @@ static int test_netware(disk_t *disk_car, const struct disk_netware *netware_blo
int check_netware(disk_t *disk_car,partition_t *partition,const int verbose)
{
unsigned char *buffer=(unsigned char *)MALLOC(DEFAULT_SECTOR_SIZE);
- 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;