From 54f745e3f335dc9915ea6db9f7ca047fdbbc3922 Mon Sep 17 00:00:00 2001 From: jpandre Date: Sat, 25 Apr 2009 11:56:34 +0000 Subject: [PATCH] Fixed partial writings for compressed files --- src/ntfs-3g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 2f958812..1abdf073 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -982,7 +982,7 @@ static int ntfs_fuse_write(const char *org_path, const char *buf, size_t size, goto exit; } while (size) { - s64 ret = ntfs_attr_pwrite(na, offset, size, buf); + s64 ret = ntfs_attr_pwrite(na, offset, size, &buf[total]); if (ret <= 0) { res = -errno; goto exit;