Fixed partial writings for compressed files

N2009_11_14_FIXES
jpandre 2009-04-25 11:56:34 +00:00
parent bcc9b7dbdc
commit 54f745e3f3
1 changed files with 1 additions and 1 deletions

View File

@ -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;