Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 83f0b9f383e8612b7834e4232ed13af9 > files > 1

MyPasswordSafe-0.6.7-11.20061216.fc14.src.rpm

diff -uNr MyPasswordSafe-20061216.orig/src/encryptedstring.cpp MyPasswordSafe-20061216/src/encryptedstring.cpp
--- MyPasswordSafe-20061216.orig/src/encryptedstring.cpp	2010-11-13 18:16:06.000000000 +0100
+++ MyPasswordSafe-20061216/src/encryptedstring.cpp	2010-11-13 18:16:33.000000000 +0100
@@ -98,7 +98,7 @@
     unsigned char cbcbuffer[8];
     memcpy(cbcbuffer, m_cbc, 8);
 
-    unsigned char *buffer = new unsigned char[BlockLength]; // so we lie a little...
+    unsigned char *buffer = new unsigned char[BlockLength+1]; // so we lie a little...
 
     unsigned char tempcbc[8];
     for (int x=0;x<BlockLength;x+=8)