Fix a potential buffer overrun from an off-by-one error.
Merge pull request #46 from dhduvall/master

Fix a potential buffer overrun from an off-by-one error.