D_MD5PasswordPass, fixup

This commit is contained in:
Alam Ed Arias 2016-05-28 19:51:10 -04:00
parent 3aea4a7601
commit 35b254feaa

View file

@ -2598,10 +2598,10 @@ static void D_MD5PasswordPass(const UINT8 *buffer, size_t len, const char *salt,
memset(dest, 0, 16);
#else
XBOXSTATIC char tmpbuf[256];
const size_t sl = strlen(salt)
const size_t sl = strlen(salt);
if (len > 256-sl)
len = 256-s;;
len = 256-sl;
memcpy(tmpbuf, buffer, len);
memmove(&tmpbuf[len], salt, sl);
//strcpy(&tmpbuf[len], salt);