Fixed a buffer overflow.