diff options
author | Christophe Grenier <[email protected]> | 2009-01-31 17:07:08 +0100 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2009-01-31 17:07:08 +0100 |
commit | 56d98fd7a229c8839a364a8a194c89c8fa650fff (patch) | |
tree | fabc87d58b2ea35831496d5f9762f6b64b481072 /src/bsd.c | |
parent | 9970a484b6983cbf5659ebf17335b4192065025e (diff) |
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/bsd.c')
-rw-r--r-- | src/bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ int check_BSD(disk_t *disk_car,partition_t *partition,const int verbose, const u { unsigned char *buffer; buffer=(unsigned char*)MALLOC(BSD_DISKLABEL_SIZE); - if(disk_car->read(disk_car,BSD_DISKLABEL_SIZE, buffer, partition->part_offset+0x200)) + if(disk_car->pread(disk_car, buffer, BSD_DISKLABEL_SIZE, partition->part_offset + 0x200) != BSD_DISKLABEL_SIZE) { free(buffer); return 1; |