mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +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))
|
||||
len = 256-strlen(salt);
|
||||
memcpy(tmpbuf, buffer, len);
|
||||
memmove(tmpbuf, buffer, len);
|
||||
strcpy(&tmpbuf[len], salt);
|
||||
len += strlen(salt);
|
||||
if (len < 256)
|
||||
|
|
|
@ -144,10 +144,8 @@ void XBoxStartup()
|
|||
myargv = NULL;
|
||||
#else
|
||||
#ifdef FORCESDLMAIN
|
||||
FUNCNORETURN
|
||||
int SDL_main(int argc, char **argv)
|
||||
#else
|
||||
FUNCNORETURN
|
||||
int main(int argc, char **argv)
|
||||
#endif
|
||||
{
|
||||
|
@ -245,8 +243,6 @@ int main(int argc, char **argv)
|
|||
#endif
|
||||
|
||||
// return to OS
|
||||
#if !defined (__GNUC__)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue