summaryrefslogtreecommitdiffstats
path: root/src/bsd.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/bsd.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/bsd.c')
-rw-r--r--src/bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bsd.c b/src/bsd.c
index 9bab4b3..c6526f4 100644
--- a/src/bsd.c
+++ b/src/bsd.c
@@ -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;