summaryrefslogtreecommitdiffstats
path: root/src/ntfsp.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/ntfsp.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/ntfsp.c')
-rw-r--r--src/ntfsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfsp.c b/src/ntfsp.c
index 7a12ac8..86d5e9a 100644
--- a/src/ntfsp.c
+++ b/src/ntfsp.c
@@ -75,7 +75,7 @@ unsigned int ntfs_remove_used_space(disk_t *disk_car,const partition_t *partitio
buffer=(unsigned char *)MALLOC(SIZEOF_BUFFER);
{
const struct ntfs_boot_sector*ntfs_header=(const struct ntfs_boot_sector*)buffer;
- if(disk_car->read(disk_car,512, buffer, partition->part_offset)!=0)
+ if(disk_car->pread(disk_car, buffer, 512, partition->part_offset) != 512)
{
free(buffer);
return 0;