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:
parent
9cc56f3c7c
commit
04a9add256
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue