mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Replace ZEROPTR() with memset.
This commit is contained in:
@ -78,7 +78,7 @@ bool Srv2StateValidateConnect (
|
||||
if (!(connect.srvType == kSrvTypeAuth || connect.srvType == kSrvTypeGame))
|
||||
return false;
|
||||
|
||||
ZEROPTR(connectPtr);
|
||||
memset(connectPtr, 0, sizeof(*connectPtr));
|
||||
MemCopy(connectPtr, &connect, min(sizeof(*connectPtr), connect.dataBytes));
|
||||
|
||||
listen->bytesProcessed += connect.dataBytes;
|
||||
|
Reference in New Issue
Block a user