mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 15:30:00 +00:00
(svn r21693) -Codechange: no need to cast char[] to const uint8*
This commit is contained in:
parent
8b6a8a8935
commit
c6a90361fc
@ -321,7 +321,7 @@ static const char *GenerateCompanyPasswordHash(const char *password)
|
||||
static char hashed_password[NETWORK_SERVER_ID_LENGTH];
|
||||
|
||||
/* Generate the MD5 hash */
|
||||
checksum.Append((const uint8*)salted_password, sizeof(salted_password) - 1);
|
||||
checksum.Append(salted_password, sizeof(salted_password) - 1);
|
||||
checksum.Finish(digest);
|
||||
|
||||
for (int di = 0; di < 16; di++) sprintf(hashed_password + di * 2, "%02x", digest[di]);
|
||||
|
Loading…
Reference in New Issue
Block a user