It was safe to call strcpy() since the input length was checked, but then it is more straightforward to call memcpy() directly.
It was safe to call strcpy() since the input length was checked, but then it is more straightforward to call memcpy() directly.