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.
Merge pull request #622 from kanoi/master

MInion and Icarus changes