freebsd-ports/security/tripwire/files/patch-src-cryptlib-cryptlib.cpp
Cy Schubert 25eef83f62 Fix build under clang and gcc 4.8.
Submitted by:	dim
2014-06-15 07:12:26 +00:00

13 lines
481 B
C++

--- src/cryptlib/cryptlib.cpp.orig 2011-11-21 17:06:56.000000000 +0100
+++ src/cryptlib/cryptlib.cpp 2014-06-15 01:42:35.000000000 +0200
@@ -43,8 +43,8 @@ void StreamCipher::ProcessString(byte *o
void StreamCipher::ProcessString(byte *inoutString, unsigned int length)
{
- while(length--)
- *inoutString++ = ProcessByte(*inoutString);
+ for(;length--; inoutString++)
+ *inoutString = ProcessByte(*inoutString);
}
bool MessageAuthenticationCode::Verify(const byte *macIn)