Updated README.md
Added null terminator to buffer to account for fgets's newline.
Fixed implicit declaration.