Fix mis-sized buffer

Reported by rgacogne on twitter.
Also spotted by gcc-4.8 with -O2
1 file changed