forked from 0ad/0ad
Fix build error, test-case bug
This was SVN commit r7270.
This commit is contained in:
parent
17718981cf
commit
7e625d7b21
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user