Handle the mmap "length" argument consistently.