return how many bytes are copied over in the read() function, otherwise it'll return 0
fixing formatting
merging with upstream master
in free, check if ptr is in the dummy buffer, and if so use dummy_free instead of the libc free func
changed tab to spaces