Fix for a one-off error

Ubuntu 12.10 apparently introduced some buffer initialization checks which were not present in Ubuntu 10.04.
This uncovered the fact that I forgot to initialize the last byte of the array (outside the for loop).
Merge pull request #300 from cduclos/master

1-off error