summaryrefslogtreecommitdiff
path: root/sys/src/9/port/log.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-12-12 19:17:58 +0100
committercinap_lenrek <cinap_lenrek@centraldogma>2011-12-12 19:17:58 +0100
commit8cb8043d0ebeadb0d424fb1051a49573430322a3 (patch)
tree3bb91278b127dce9ebf0d30975bc7197ac2765a8 /sys/src/9/port/log.c
parent304ee3b2b55971d9f5f820511fb9cdadcb77b818 (diff)
kernel: fix more malloc/smalloc errors
Diffstat (limited to 'sys/src/9/port/log.c')
-rw-r--r--sys/src/9/port/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/log.c b/sys/src/9/port/log.c
index 9ff1b9342..b40c7430a 100644
--- a/sys/src/9/port/log.c
+++ b/sys/src/9/port/log.c
@@ -21,7 +21,7 @@ logopen(Log *alog)
if(alog->minread == 0)
alog->minread = 1;
if(alog->buf == nil)
- alog->buf = malloc(alog->nlog);
+ alog->buf = smalloc(alog->nlog);
alog->rptr = alog->buf;
alog->end = alog->buf + alog->nlog;
alog->len = 0;