X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5a8afc787bcaafabd3aee68b6dac341962801b57..3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c:/unix/uxagentc.c diff --git a/unix/uxagentc.c b/unix/uxagentc.c index af56f1b8..e16c92f9 100644 --- a/unix/uxagentc.c +++ b/unix/uxagentc.c @@ -80,7 +80,7 @@ void agent_query(void *in, int inlen, void **out, int *outlen) } retsize += 4; assert(retbuf == sizebuf); - retbuf = smalloc(retsize); + retbuf = snewn(retsize, char); memcpy(retbuf, sizebuf, 4); } }