Fixed a minor fencepost error, that was causing two null terminators if it reached the end of a string.
Fixed a minor fencepost error, that was causing two null terminators if
it reached the end of a string.

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion