summaryrefslogtreecommitdiffstats
path: root/src/savehdr.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/savehdr.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/savehdr.c')
-rw-r--r--src/savehdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/savehdr.c b/src/savehdr.c
index fb78963..a179a40 100644
--- a/src/savehdr.c
+++ b/src/savehdr.c
@@ -81,7 +81,7 @@ int save_header(disk_t *disk_car,partition_t *partition, const int verbose)
}
if(fwrite(buffer,DEFAULT_SECTOR_SIZE,1,f_backup)!=1)
res = -1;
- if(res>=0 && disk_car->read(disk_car,256*DEFAULT_SECTOR_SIZE, buffer, partition->part_offset)!=0)
+ if(res>=0 && disk_car->pread(disk_car, buffer, 256 * DEFAULT_SECTOR_SIZE, partition->part_offset) != 256 * DEFAULT_SECTOR_SIZE)
res = -1;
if(res>=0 && fwrite(buffer,DEFAULT_SECTOR_SIZE,256,f_backup)!=256)
res = -1;