Fix argument to dStrncat

This commit is contained in:
Johan Mattsson 2023-03-04 21:47:04 +01:00 committed by GitHub
parent 4f4184ab68
commit fa5b377ec3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -280,7 +280,7 @@ void GFXD3D11Device::enumerateAdapters(Vector<GFXAdapter*> &adapterList)
SAFE_DELETE_ARRAY(str);
dStrncpy(toAdd->mName, Description.c_str(), GFXAdapter::MaxAdapterNameLen);
dStrncat(toAdd->mName, " (D3D11)", GFXAdapter::MaxAdapterNameLen);
dStrncat(toAdd->mName, " (D3D11)", 8);
IDXGIOutput* pOutput = NULL;
HRESULT hr;