X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/0ac2edb34df938e43d233e4d47a05231355747ee..8c1616628c6d488feff6ebec2c268aa30e337773:/logging.c diff --git a/logging.c b/logging.c index 499747c7..d526474e 100644 --- a/logging.c +++ b/logging.c @@ -163,7 +163,7 @@ void logfclose(void *handle) void *log_init(void *frontend, Config *cfg) { - struct LogContext *ctx = smalloc(sizeof(struct LogContext)); + struct LogContext *ctx = snew(struct LogContext); ctx->lgfp = NULL; ctx->frontend = frontend; ctx->cfg = *cfg; /* STRUCTURE COPY */