summaryrefslogtreecommitdiffstats
path: root/src/partsun.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/partsun.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/partsun.c')
-rw-r--r--src/partsun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partsun.c b/src/partsun.c
index 8153715..15b3b62 100644
--- a/src/partsun.c
+++ b/src/partsun.c
@@ -144,7 +144,7 @@ list_part_t *read_part_sun(disk_t *disk_car, const int verbose, const int savehe
unsigned char *buffer=(unsigned char *)MALLOC(disk_car->sector_size);
screen_buffer_reset();
sunlabel=(sun_partition*)buffer;
- if(disk_car->read(disk_car,DEFAULT_SECTOR_SIZE, buffer, (uint64_t)0))
+ if(disk_car->pread(disk_car, buffer, DEFAULT_SECTOR_SIZE, (uint64_t)0) != DEFAULT_SECTOR_SIZE)
{
screen_buffer_add( msg_PART_RD_ERR);
free(buffer);