From 7e625d7b216b10bca7df624cf3433b1e71ba8845 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sun, 10 Jan 2010 19:44:56 +0000 Subject: [PATCH] Fix build error, test-case bug This was SVN commit r7270. --- source/maths/MD5.cpp | 2 ++ source/maths/tests/test_MD5.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/maths/MD5.cpp b/source/maths/MD5.cpp index b77439323d..d6f62c4030 100644 --- a/source/maths/MD5.cpp +++ b/source/maths/MD5.cpp @@ -15,6 +15,8 @@ * along with 0 A.D. If not, see . */ +#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" diff --git a/source/maths/tests/test_MD5.h b/source/maths/tests/test_MD5.h index c833d4239c..c447a7c52d 100644 --- a/source/maths/tests/test_MD5.h +++ b/source/maths/tests/test_MD5.h @@ -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; }