File tripwire-2.4.1.2-src-undefined-operation.patch of Package tripwire

diff -uNr tripwire-2.4.1.2-src.orig//src/cryptlib/cryptlib.cpp tripwire-2.4.1.2-src//src/cryptlib/cryptlib.cpp
--- tripwire-2.4.1.2-src.orig//src/cryptlib/cryptlib.cpp	2005-09-16 05:12:35.000000000 +0200
+++ tripwire-2.4.1.2-src//src/cryptlib/cryptlib.cpp	2009-06-04 17:45:08.873188000 +0200
@@ -43,8 +43,11 @@
 
 void StreamCipher::ProcessString(byte *inoutString, unsigned int length)
 {
-	while(length--)
-		*inoutString++ = ProcessByte(*inoutString);
+	while(length--) 
+	{
+		ProcessByte(*inoutString);
+		*inoutString++;
+	}
 }
 
 bool MessageAuthenticationCode::Verify(const byte *macIn)
Files tripwire-2.4.1.2-src.orig//src/cryptlib/.cryptlib.cpp.swp and tripwire-2.4.1.2-src//src/cryptlib/.cryptlib.cpp.swp differ
openSUSE Build Service is sponsored by