Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CommonUtilitiesLib/OSFileSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void OSFileSource::Set(const char *inPath)
if (fFile != -1)
{
struct stat buf;
::memset(&buf,sizeof(buf),0);
::memset(&buf,0,sizeof(buf));
if (::fstat(fFile, &buf) >= 0)
{
fLength = buf.st_size;
Expand Down
2 changes: 1 addition & 1 deletion CommonUtilitiesLib/SDPUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void SDPContainer::Initialize()
fSDPLineArray = NEW SDPLine[fNumSDPLines];
fValid = false;
fReqLines = 0;
::memset(fFieldStr, sizeof(fFieldStr), 0);
::memset(fFieldStr, 0, sizeof(fFieldStr));
}

Bool16 SDPContainer::SetSDPBuffer(char *sdpBuffer)
Expand Down