1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 14:10:34 +00:00

(libt) #3588:Torrents with non power 2 pieceSizes fail hashchecks

This commit is contained in:
Daniel Lee 2010-09-30 17:59:30 +00:00
parent 9cc56f3c7c
commit 04a9add256

View file

@ -289,7 +289,7 @@ recalculateHash( tr_torrent * tor,
size_t bytesLeft;
uint32_t offset = 0;
tr_bool success = TRUE;
const size_t buflen = MAX_BLOCK_SIZE;
const size_t buflen = tor->blockSize;
void * buffer = tr_valloc( buflen );
SHA_CTX sha;