From 35b254feaa18d7fc40943c2fe2d98fbc7742b071 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sat, 28 May 2016 19:51:10 -0400 Subject: [PATCH] D_MD5PasswordPass, fixup --- src/d_netcmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 868469cfb..4f73a2564 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -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);