projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add input-focus support for System 7, where the Control Manager can't do
[u/mdw/putty]
/
logging.c
diff --git
a/logging.c
b/logging.c
index
499747c
..
d526474
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 = s
malloc(sizeof(struct LogContext)
);
+ struct LogContext *ctx = s
new(struct LogContext
);
ctx->lgfp = NULL;
ctx->frontend = frontend;
ctx->cfg = *cfg; /* STRUCTURE COPY */