mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-21 14:18:38 -05: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:
parent
17af65c78c
commit
01ca464ad2
2
misc.c
2
misc.c
@ -294,7 +294,7 @@ static void *minefield_alloc(int size)
|
|||||||
/*
|
/*
|
||||||
* Update the admin region.
|
* 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[i] = 0xFFFE; /* used but no region starts here */
|
||||||
minefield_admin[start + 1] = region_start % PAGESIZE;
|
minefield_admin[start + 1] = region_start % PAGESIZE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user