X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Fnntp%2Fmime%2FMime.cpp;h=89de9f17a666da05f54624c5e4fe4e2f269967f9;hp=fa20dcc7784838f245d5d73ffe505d62f612c4fb;hb=f60495a029c54358f82956482fe203fe2b7b5b23;hpb=d8ccfe2b3944adf07d35534459cdda19d15217c8 diff --git a/src/nntp/mime/Mime.cpp b/src/nntp/mime/Mime.cpp index fa20dcc..89de9f1 100644 --- a/src/nntp/mime/Mime.cpp +++ b/src/nntp/mime/Mime.cpp @@ -362,7 +362,7 @@ void CMimeHeader::SetBoundary(const char* pszBoundary/*=NULL*/) char buf[80]; if (!pszBoundary) // generate a new boundary delimeter { - ::srand(((unsigned)::time(NULL)) ^ (unsigned)this); + ::srand(((unsigned)::time(NULL)));// ^ reinterpret_cast(this)); ::sprintf(buf, "__=_Part_Boundary_%03d_%06d.%06d", ++s_nPartNumber, rand(), rand()); if (s_nPartNumber >= 9) s_nPartNumber = 0; @@ -475,7 +475,11 @@ list::iterator CMimeHeader::FindField(const char* pszFieldName) #include #else #if !defined(__APPLE__) && !defined(__DARWIN__) - #include + #ifndef __FreeBSD__ + #include + #else + #include + #endif #endif #endif