mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 18:59:09 +00:00
Toss lots of custom CString code
We already have a C standard library, so let's not reimplement it.
This commit is contained in:
@ -1468,8 +1468,8 @@ bool plSimpleStateVariable::Set(const char* v, int idx)
|
||||
|
||||
if (v && fVar.GetType()==plVarDescriptor::kString32)
|
||||
{
|
||||
hsAssert(hsStrlen(v)<32, "string length overflow");
|
||||
hsStrncpy(fS32[idx], v, 32);
|
||||
hsAssert(strlen(v)<32, "string length overflow");
|
||||
strncpy(fS32[idx], v, 32);
|
||||
IVarSet();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user