summaryrefslogtreecommitdiffstats
path: root/src/partxbox.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/partxbox.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/partxbox.c')
-rw-r--r--src/partxbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partxbox.c b/src/partxbox.c
index e867a04..06930ab 100644
--- a/src/partxbox.c
+++ b/src/partxbox.c
@@ -96,7 +96,7 @@ list_part_t *read_part_xbox(disk_t *disk_car, const int verbose, const int saveh
unsigned char buffer[0x800];
list_part_t *new_list_part=NULL;
screen_buffer_reset();
- if(disk_car->read(disk_car,sizeof(buffer), &buffer, 0)!=0)
+ if(disk_car->pread(disk_car, &buffer, sizeof(buffer), 0) != sizeof(buffer))
return new_list_part;
{
uint64_t offsets[]={ 0x00080000, 0x2ee80000, 0x5dc80000, 0x8ca80000, 0xabe80000 };