Increases buffer size to account for terminating NULL.

Vaglrind found an invalid write here. string::size() returns the number of characters in a string, but strcpy copies that plus the null terminating byte, resulting in a buffer overrun of 1 byte.