1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix tree corruption in the "really easy" case on deletion

[originally from svn r632]
This commit is contained in:
Simon Tatham 2000-09-26 11:16:33 +00:00
parent 3e4619b479
commit c9557bfc40

View File

@ -494,7 +494,7 @@ void del234(tree234 *t, void *e) {
*/
int i;
LOG((" case 1\n"));
for (i = ei; i < 3 && n->elems[i+1]; i++)
for (i = ei; i < 2 && n->elems[i+1]; i++)
n->elems[i] = n->elems[i+1];
n->elems[i] = NULL;
return; /* finished! */