Introduced wrapper macros snew(), snewn() and sresize() for the
[u/mdw/putty] / unix / ux_x11.c
index 61b4f04..47d0ef5 100644 (file)
@@ -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) {
         /*