From 81915334956bbef51616182892629b3b80e1e8e1 Mon Sep 17 00:00:00 2001 From: jpandre Date: Thu, 12 Feb 2009 16:51:52 +0000 Subject: [PATCH] Fixed computation of runlists --- libntfs-3g/runlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs-3g/runlist.c b/libntfs-3g/runlist.c index ee48d833..9f7ca98f 100644 --- a/libntfs-3g/runlist.c +++ b/libntfs-3g/runlist.c @@ -1315,7 +1315,7 @@ int ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol, rl++; } /* Do the full runs. */ - for (; rl->length && (rls < max_size); rl++) { + for (; rl->length && (rls <= max_size); rl++) { if (rl->length < 0 || rl->lcn < LCN_HOLE) goto err_out; /* Header byte + length. */