Fix memory corruption (reserve space for terminating '\0')