mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
use memmove in D_MD5PasswordPass() and drop noreturn
This commit is contained in:
parent
35f36e1bba
commit
d9aa430817
2 changed files with 1 additions and 5 deletions
|
@ -2601,7 +2601,7 @@ static void D_MD5PasswordPass(const UINT8 *buffer, size_t len, const char *salt,
|
||||||
|
|
||||||
if (len > 256-strlen(salt))
|
if (len > 256-strlen(salt))
|
||||||
len = 256-strlen(salt);
|
len = 256-strlen(salt);
|
||||||
memcpy(tmpbuf, buffer, len);
|
memmove(tmpbuf, buffer, len);
|
||||||
strcpy(&tmpbuf[len], salt);
|
strcpy(&tmpbuf[len], salt);
|
||||||
len += strlen(salt);
|
len += strlen(salt);
|
||||||
if (len < 256)
|
if (len < 256)
|
||||||
|
|
|
@ -144,10 +144,8 @@ void XBoxStartup()
|
||||||
myargv = NULL;
|
myargv = NULL;
|
||||||
#else
|
#else
|
||||||
#ifdef FORCESDLMAIN
|
#ifdef FORCESDLMAIN
|
||||||
FUNCNORETURN
|
|
||||||
int SDL_main(int argc, char **argv)
|
int SDL_main(int argc, char **argv)
|
||||||
#else
|
#else
|
||||||
FUNCNORETURN
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
@ -245,8 +243,6 @@ int main(int argc, char **argv)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// return to OS
|
// return to OS
|
||||||
#if !defined (__GNUC__)
|
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue