[d3d9] Use strlcpy helper

This commit is contained in:
Joshua Ashton 2022-04-18 00:52:31 +01:00 committed by Joshie
parent dc6b7fa4a7
commit 147f3738f9
1 changed files with 1 additions and 2 deletions

View File

@ -45,8 +45,7 @@ namespace dxvk {
template <size_t N>
static void copyToStringArray(char (&dst)[N], const char* src) {
std::strncpy(dst, src, N);
dst[N - 1] = '\0';
dxvk::str::strlcpy(dst, src, N);
}