Stop a buffer overflow before it happens by null terminating the buffer.