summaryrefslogtreecommitdiff
path: root/emu/port/deveia-posix.c
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2008-11-07 23:49:55 +0000
committerCharles.Forsyth <devnull@localhost>2008-11-07 23:49:55 +0000
commit48063faf7937a148e85991c463bf91e78213ebf1 (patch)
tree6d162ee6ffd215efdff9573ba1d9daca983961ad /emu/port/deveia-posix.c
parentd3ba796f4932de1b69a999a9b9ed27368ae24d74 (diff)
20081107-2349
Diffstat (limited to 'emu/port/deveia-posix.c')
-rw-r--r--emu/port/deveia-posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/emu/port/deveia-posix.c b/emu/port/deveia-posix.c
index e6e34bc1..5db8ae86 100644
--- a/emu/port/deveia-posix.c
+++ b/emu/port/deveia-posix.c
@@ -241,7 +241,7 @@ eiainit(void)
return;
ndir = Nqid*nports+1;
- dp = eiadir = calloc(ndir, sizeof(Dirtab));
+ dp = eiadir = malloc(ndir*sizeof(Dirtab));
if(dp == 0)
panic("eiainit");
strcpy(dp->name, ".");
@@ -249,7 +249,7 @@ eiainit(void)
dp->qid.type = QTDIR;
dp->perm = DMDIR|0555;
dp++;
- eia = calloc(nports, sizeof(Eia));
+ eia = malloc(nports*sizeof(Eia));
if(eia == 0)
panic("eiainit");
for(i = 0; i < nports; i++) {