diff options
-rw-r--r-- | src/cmd/vbackup/vcat.c | 2 | ||||
-rw-r--r-- | src/cmd/vbackup/vnfs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/vbackup/vcat.c b/src/cmd/vbackup/vcat.c index 0346963b..e30f78f8 100644 --- a/src/cmd/vbackup/vcat.c +++ b/src/cmd/vbackup/vcat.c @@ -47,7 +47,7 @@ threadmain(int argc, char **argv) sysfatal("vtdial: %r"); if(vtconnect(z) < 0) sysfatal("vtconnect: %r"); - if((c = vtcachealloc(z, 16384, 32)) == nil) + if((c = vtcachealloc(z, 16384*32)) == nil) sysfatal("vtcache: %r"); if((disk = diskopenventi(c, score)) == nil) sysfatal("diskopenventi: %r"); diff --git a/src/cmd/vbackup/vnfs.c b/src/cmd/vbackup/vnfs.c index 563cb270..cb9fdbf5 100644 --- a/src/cmd/vbackup/vnfs.c +++ b/src/cmd/vbackup/vnfs.c @@ -143,7 +143,7 @@ threadmain(int argc, char **argv) sysfatal("vtdial: %r"); if(vtconnect(z) < 0) sysfatal("vtconnect: %r"); - if((vcache = vtcachealloc(z, blocksize, cachesize)) == nil) + if((vcache = vtcachealloc(z, blocksize*cachesize)) == nil) sysfatal("vtcache: %r"); configfile = argv[0]; |