Fix null terminator bug.
Merge pull request #29 from aitjcize/null-term

Fix null terminator bug.