release 3.2, Jan 4, 1980
[unix-history] / usr / src / usr.bin / ex / ex_temp.c
index 340b0be..e8f8780 100644 (file)
@@ -23,13 +23,13 @@ fileinit()
        register int i, j;
        struct stat stbuf;
 
        register int i, j;
        struct stat stbuf;
 
-       if (tline == INCRMT * 3)
+       if (tline == INCRMT * (HBLKS+2))
                return;
        cleanup(0);
        close(tfile);
                return;
        cleanup(0);
        close(tfile);
-       tline = INCRMT * 3;
-       blocks[0] = 1;
-       blocks[1] = 2;
+       tline = INCRMT * (HBLKS+2);
+       blocks[0] = HBLKS;
+       blocks[1] = HBLKS+1;
        blocks[2] = -1;
        dirtcnt = 0;
        iblock = -1;
        blocks[2] = -1;
        dirtcnt = 0;
        iblock = -1;