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;