X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/9939292a8f1e9b00e3e09192e966c88afb473c7c..c7edb1cca5c2b3f3642034104dcf49656cd8678e:/unix/ux_x11.c?ds=sidebyside diff --git a/unix/ux_x11.c b/unix/ux_x11.c index 61b4f04c..47d0ef5f 100644 --- a/unix/ux_x11.c +++ b/unix/ux_x11.c @@ -29,7 +29,7 @@ void platform_get_x11_auth(char *display, int *protocol, if (!fp) return; /* assume no auth */ - localbuf = smalloc(maxsize); + localbuf = snewn(maxsize, char); while (1) { /*