~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an option to force SSH1 protocol only. Partly for symmetry;
[sgt/putty]
/
misc.c
diff --git
a/misc.c
b/misc.c
index
a2d741e
..
6f2d544
100644
(file)
--- a/
misc.c
+++ b/
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[start + 1] = region_start % PAGESIZE;
minefield_admin[i] = 0xFFFE; /* used but no region starts here */
minefield_admin[start + 1] = region_start % PAGESIZE;
@@
-415,7
+415,7
@@
void *safemalloc(size_t size)
#endif
MessageBox(NULL, str, "PuTTY Fatal Error",
MB_SYSTEMMODAL | MB_ICONERROR | MB_OK);
#endif
MessageBox(NULL, str, "PuTTY Fatal Error",
MB_SYSTEMMODAL | MB_ICONERROR | MB_OK);
- exit(1);
+
cleanup_
exit(1);
}
#ifdef MALLOC_LOG
if (fp)
}
#ifdef MALLOC_LOG
if (fp)
@@
-452,7
+452,7
@@
void *saferealloc(void *ptr, size_t size)
#endif
MessageBox(NULL, str, "PuTTY Fatal Error",
MB_SYSTEMMODAL | MB_ICONERROR | MB_OK);
#endif
MessageBox(NULL, str, "PuTTY Fatal Error",
MB_SYSTEMMODAL | MB_ICONERROR | MB_OK);
- exit(1);
+
cleanup_
exit(1);
}
#ifdef MALLOC_LOG
if (fp)
}
#ifdef MALLOC_LOG
if (fp)