Not that it really matters, but since we just compute the length of this string, it would be faster to memcpy it.

I also suspect that Microsoft's compiler will issue a warning here (since it's considered an insecure).