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:
heinrich5991 2024-01-09 19:41:13 +00:00 committed by GitHub
commit e40c02a6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ void CreateEmptyMap(IStorage *pStorage)
unsigned char *pDataChar = static_cast<unsigned char *>(pData);
unsigned Crc = crc32(0, pDataChar, DataSize);
SHA256_DIGEST Sha256 = sha256(&pDataChar, DataSize);
SHA256_DIGEST Sha256 = sha256(pDataChar, DataSize);
char aMapSha[SHA256_MAXSTRSIZE];
sha256_str(Sha256, aMapSha, sizeof(aMapSha));