diff options
Diffstat (limited to 'src/cmd/9660srv')
-rw-r--r-- | src/cmd/9660srv/iobuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/9660srv/iobuf.c b/src/cmd/9660srv/iobuf.c index 30eafb3a..01acd06a 100644 --- a/src/cmd/9660srv/iobuf.c +++ b/src/cmd/9660srv/iobuf.c @@ -46,8 +46,8 @@ iobuf_init(void) n = nclust*sizeof(Ioclust) + nclust*BUFPERCLUST*(sizeof(Iobuf)+Sectorsize); - mem = sbrk(n); - if(mem == (void*)-1) + mem = malloc(n); + if(mem == (void*)0) panic(0, "iobuf_init"); memset(mem, 0, n); |