Fixing a buffer overflow bug.