From c6c14cb256c92310af01219776ec18bfbd0f88ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Thu, 22 Jul 2010 15:04:53 +0200 Subject: [PATCH] Fixed zeroing the end of fragmented ex-holes --- libntfs-3g/attrib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 9e63a168..c7bbf333 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -1916,7 +1916,7 @@ s64 ntfs_attr_pwrite(ntfs_attr *na, const s64 pos, s64 count, const void *b) * partial final vcn is taken care of by the @count capping of write * length. */ - for (hole_end = 0; count; rl++, ofs = 0, hole_end = 0) { + for (hole_end = 0; count; rl++, ofs = 0) { if (rl->lcn == LCN_RL_NOT_MAPPED) { rl = ntfs_attr_find_vcn(na, rl->vcn); if (!rl) {