Answer to Question nullterm-2

A null-terminated string of length n needs n+1 bytes, since it needs a place to store the null character. CopyString does not allocate a large enough array.