mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +01:00
[d3d9] Use strlcpy helper
This commit is contained in:
parent
dc6b7fa4a7
commit
147f3738f9
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user