projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
radioline() was broken after the portable-dialog stuff got added, so
[u/mdw/putty]
/
sshrand.c
diff --git
a/sshrand.c
b/sshrand.c
index
e238666
..
524bbd4
100644
(file)
--- a/
sshrand.c
+++ b/
sshrand.c
@@
-202,7
+202,7
@@
int random_byte(void)
void random_get_savedata(void **data, int *len)
{
- void *buf = s
malloc(POOLSIZE / 2
);
+ void *buf = s
newn(POOLSIZE / 2, char
);
random_stir();
memcpy(buf, pool.pool + pool.poolpos, POOLSIZE / 2);
*len = POOLSIZE / 2;