From 705cd1c22ffac760124365126665961515bdb7b8 Mon Sep 17 00:00:00 2001 From: szaka Date: Thu, 5 Mar 2009 22:50:16 +0000 Subject: [PATCH] ntfs_attr_pwrite: fix attribute initialized size condition (Jean-Pierre Andre) --- 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 8852f3a4..c1d86da3 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -1363,7 +1363,7 @@ retry: */ if ((rounded && (wend < (hole << vol->cluster_size_bits))) || (((to_write % bsize) && - (ofs + to_write == na->initialized_size)))) { + (wend == na->initialized_size)))) { char *cb;