From 183985792c52537d397db65bf4b4d305d2995b46 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Tue, 17 Aug 2004 21:07:00 +0000 Subject: [PATCH] Only need two spare runlist elements when realocating memory, not three since we no longer add a starting element. (Logical change 1.501) --- libntfs/lcnalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs/lcnalloc.c b/libntfs/lcnalloc.c index 4859e93b..93876858 100644 --- a/libntfs/lcnalloc.c +++ b/libntfs/lcnalloc.c @@ -267,7 +267,7 @@ runlist *ntfs_cluster_alloc(ntfs_volume *vol, s64 count, LCN start_lcn, continue; } /* Reallocate memory if necessary. */ - if ((rlpos + 3) * (int)sizeof(runlist) >= rlsize) { + if ((rlpos + 2) * (int)sizeof(runlist) >= rlsize) { Dprintf("%s(): Reallocating space.\n", __FUNCTION__); if (!rl)