mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix warning
This commit is contained in:
parent
4cfb06ff4a
commit
9e66ed7f2e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user