changed mmap mode in cat.c to avoid possible out-of-memory bug