Only need two spare runlist elements when realocating memory,

not three since we no longer add a starting element.

(Logical change 1.501)
edge.strict_endians
cantab.net!aia21 2004-08-17 21:07:00 +00:00
parent bd32a5f43a
commit 183985792c
1 changed files with 1 additions and 1 deletions

View File

@ -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)