1
0
forked from 0ad/0ad

Fix build error, test-case bug

This was SVN commit r7270.
This commit is contained in:
Ykkrosh 2010-01-10 19:44:56 +00:00
parent 17718981cf
commit 7e625d7b21
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
*/
#include "precompiled.h"
// Based on md5.cpp from Crypto++ 5.6.0:
// "md5.cpp - modified by Wei Dai from Colin Plumb's public domain md5.c"
// "any modifications are placed in the public domain"

View File

@ -26,7 +26,7 @@ public:
{
char digeststr[MD5::DIGESTSIZE*2+1];
for (size_t i = 0; i < MD5::DIGESTSIZE; ++i)
sprintf_s(digeststr+2*i, 4, "%02x", digest[i]);
sprintf_s(digeststr+2*i, 3, "%02x", digest[i]);
return digeststr;
}