Fix warning

This commit is contained in:
Amos 2022-02-23 00:21:54 +01:00
parent 4cfb06ff4a
commit 9e66ed7f2e

View File

@ -274,7 +274,7 @@ char* ConCommandBase::CopyString(const char* szFrom) const
else
{
szTo = new char[nLen + 1];
strncpy(szTo, szFrom, nLen + 1);
memmove(szTo, szFrom, nLen + 1);
}
return szTo;
}