projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the Mac port over to using snew/snewn/sresize.
[u/mdw/putty]
/
mac
/
macevlog.c
diff --git
a/mac/macevlog.c
b/mac/macevlog.c
index
7eb047e
..
60283ed
100644
(file)
--- a/
mac/macevlog.c
+++ b/
mac/macevlog.c
@@
-1,4
+1,4
@@
-/* $Id: macevlog.c,v 1.
5 2003/02/23 13:00:38
ben Exp $ */
+/* $Id: macevlog.c,v 1.
6 2003/03/29 23:07:55
ben Exp $ */
/*
* Copyright (c) 2003 Ben Harris
* All rights reserved.
/*
* Copyright (c) 2003 Ben Harris
* All rights reserved.
@@
-58,7
+58,7
@@
static void mac_createeventlog(Session *s)
WinInfo *wi;
s->eventlog_window = GetNewWindow(wEventLog, NULL, (WindowPtr)-1);
WinInfo *wi;
s->eventlog_window = GetNewWindow(wEventLog, NULL, (WindowPtr)-1);
- wi = s
malloc(sizeof(*wi)
);
+ wi = s
new(WinInfo
);
memset(wi, 0, sizeof(*wi));
wi->s = s;
wi->wtype = wEventLog;
memset(wi, 0, sizeof(*wi));
wi->s = s;
wi->wtype = wEventLog;