One off error in test case

For some reason on one machine the buffers included one '\0' before the end, therefore the size calculations were all wrong.
Merge pull request #303 from cduclos/master

1-off error