1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Fix bug in Minefield's realloc() which was throwing away most of any

block > 4096 bytes. Arrgh.

[originally from svn r1611]
This commit is contained in:
Simon Tatham 2002-03-31 16:23:32 +00:00
parent 17af65c78c
commit 01ca464ad2

2
misc.c
View File

@ -294,7 +294,7 @@ static void *minefield_alloc(int size)
/*
* Update the admin region.
*/
for (i = start + 2; i < start + npages - 1; i++)
for (i = start + 2; i < start + npages + 1; i++)
minefield_admin[i] = 0xFFFE; /* used but no region starts here */
minefield_admin[start + 1] = region_start % PAGESIZE;