Fix an off-by-one.

This caused submitblock to have an undefined byte resulting
in bad block data.
Merge pull request #621 from dajohi/master

Fix an off-by-one.