Fixed the errors I was getting previously when using this example of the mmap function.