mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #7783 from Robyt3/Tools-Dummy-Map-Sha-Pointer-Fix
Fix incorrect SHA256 logged in `dummy_map` tool
This commit is contained in:
commit
e40c02a6ff
|
@ -92,7 +92,7 @@ void CreateEmptyMap(IStorage *pStorage)
|
||||||
unsigned char *pDataChar = static_cast<unsigned char *>(pData);
|
unsigned char *pDataChar = static_cast<unsigned char *>(pData);
|
||||||
|
|
||||||
unsigned Crc = crc32(0, pDataChar, DataSize);
|
unsigned Crc = crc32(0, pDataChar, DataSize);
|
||||||
SHA256_DIGEST Sha256 = sha256(&pDataChar, DataSize);
|
SHA256_DIGEST Sha256 = sha256(pDataChar, DataSize);
|
||||||
|
|
||||||
char aMapSha[SHA256_MAXSTRSIZE];
|
char aMapSha[SHA256_MAXSTRSIZE];
|
||||||
sha256_str(Sha256, aMapSha, sizeof(aMapSha));
|
sha256_str(Sha256, aMapSha, sizeof(aMapSha));
|
||||||
|
|
Loading…
Reference in a new issue