]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/cwfs/cw.c
cwfs: fix 1GB memsize limitation
[plan9front.git] / sys / src / cmd / cwfs / cw.c
index dad3d5a38b0835e5f00bee13fbf361efd34b31e4..d4a0b9dd0e63bd5fc87e0991d4058dcde76d1b01 100644 (file)
@@ -400,7 +400,7 @@ cwinit1(Device *dev)
                roflag = flag_install("ro", "-- ro reads and writes");
                first = 1;
        }
-       cw = malloc(sizeof(Cw));
+       cw = ialloc(sizeof(Cw), 0);
        dev->private = cw;
 
        cw->allflag = 0;