]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - logging.c
Introduced wrapper macros snew(), snewn() and sresize() for the
[PuTTY.git] / logging.c
index 499747c743dbd9765b8a7bf927a3bdd9fe8ab653..d526474e855936a076fec23025d83975792bf568 100644 (file)
--- 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 */