aboutsummaryrefslogtreecommitdiff
path: root/src/md5.cpp
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2006-08-30 00:34:28 +0000
committerDavid <david@xagasoft.com>2006-08-30 00:34:28 +0000
commitb797d7a7c4481c20b26ecf6ce7ef77e4782534bb (patch)
treec16d8138d6e025ed2ba0f133cef0bd9c2c322638 /src/md5.cpp
parent5ff43b1a4abd06a47a996b817846567f8d1bc615 (diff)
downloadlibbu++-b797d7a7c4481c20b26ecf6ce7ef77e4782534bb.tar.gz
libbu++-b797d7a7c4481c20b26ecf6ce7ef77e4782534bb.tar.bz2
libbu++-b797d7a7c4481c20b26ecf6ce7ef77e4782534bb.tar.xz
libbu++-b797d7a7c4481c20b26ecf6ce7ef77e4782534bb.zip
david - creepy forgot to commit hashtable stuff... also fixed something in md5... it was using uninitialized data...
Diffstat (limited to 'src/md5.cpp')
-rw-r--r--src/md5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/md5.cpp b/src/md5.cpp
index ed7e4ac..c0cacdd 100644
--- a/src/md5.cpp
+++ b/src/md5.cpp
@@ -143,7 +143,7 @@ long *md5::c2l( const char *str, long len, long *nNewLen )
143 long mlen = OBLOC( len8 ); 143 long mlen = OBLOC( len8 );
144 long flen = (((mlen/16)+((mlen%16)?(1):(0))))*16; 144 long flen = (((mlen/16)+((mlen%16)?(1):(0))))*16;
145 long *aBin = new long[flen]; 145 long *aBin = new long[flen];
146 memset( aBin, 0, flen ); 146 memset( aBin, 0, flen*4 );
147 147
148 for( long i = 0; i < len8; i+=8 ) 148 for( long i = 0; i < len8; i+=8 )
149 { 149 {