used a random block size if not given an argv[1].
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 30 Jun 1988 08:58:11 +0000 (00:58 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 30 Jun 1988 08:58:11 +0000 (00:58 -0800)
SCCS-vsn: local/local.cmd/20b.c 5.5

usr/src/local/local.cmd/20b.c

index 29da858..e0b0532 100644 (file)
@@ -22,7 +22,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)20b.c      5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)20b.c      5.5 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <stdio.h>
 #endif /* not lint */
 
 #include <stdio.h>
@@ -42,6 +42,8 @@ main(argc, argv)
                        exit(-1);
                }
        }
                        exit(-1);
                }
        }
+       else
+               bsize = 20 * 512;
        base = alloca(bsize);
        for (cc = bsize; cc > 0;) {
                current = base;
        base = alloca(bsize);
        for (cc = bsize; cc > 0;) {
                current = base;