*** mp/mp_fopen.c.orig Wed Dec 31 19:00:00 1969 --- mp/mp_fopen.c Mon Dec 21 11:12:23 1998 *************** *** 177,182 **** --- 177,186 ---- last_pgno = mbytes * (MEGABYTE / pagesize); last_pgno += bytes / pagesize; + + /* Correction: page numbers are zero-based, not 1-based. */ + if (last_pgno != 0) + --last_pgno; /* * Get the file id if we weren't given one. Generated file id's