Fixed a buffer overflow vunerability