2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-13 18:17:49 -04:00

Replace ZEROPTR() with memset.

This commit is contained in:
Darryl Pogue
2012-01-20 23:42:39 -08:00
committed by Adam Johnson
parent 3c5ed83020
commit 30430d3024
10 changed files with 12 additions and 14 deletions

View File

@ -79,7 +79,7 @@ bool Srv2LogValidateConnect (
connect.srvType == kSrvTypeMcp || connect.srvType == kSrvTypeState || connect.srvType == kSrvTypeFile || connect.srvType == kSrvTypeDll))
return false;
ZEROPTR(connectPtr);
memset(connectPtr, 0, sizeof(*connectPtr));
MemCopy(connectPtr, &connect, min(sizeof(*connectPtr), connect.dataBytes));
listen->bytesProcessed += connect.dataBytes;