fix buffer overflow
Merge pull request #69 from cgzones/buffer-overflow

fix buffer overflow