projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rework keylist_update() to fix both a buffer-size limitation and a
[u/mdw/putty]
/
windows
/
winmisc.c
diff --git
a/windows/winmisc.c
b/windows/winmisc.c
index
2166f45
..
c74f1e7
100644
(file)
--- a/
windows/winmisc.c
+++ b/
windows/winmisc.c
@@
-68,6
+68,7
@@
Filename *filename_deserialise(void *vdata, int maxsize, int *used)
return filename_from_str(data);
}
+#ifndef NO_SECUREZEROMEMORY
/*
* Windows implementation of smemclr (see misc.c) using SecureZeroMemory.
*/
@@
-75,6
+76,7
@@
void smemclr(void *b, size_t n) {
if (b && n > 0)
SecureZeroMemory(b, n);
}
+#endif
char *get_username(void)
{