mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
(trunk libT) fix bug between the new inout checksum code and the new cache code
This commit is contained in:
parent
42104d9a9b
commit
95232dfe58
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
||||||
#include "crypto.h"
|
#include "crypto.h"
|
||||||
#include "fdlimit.h"
|
#include "fdlimit.h"
|
||||||
#include "inout.h"
|
#include "inout.h"
|
||||||
|
#include "peer-common.h" /* MAX_BLOCK_SIZE */
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "torrent.h"
|
#include "torrent.h"
|
||||||
|
@ -288,7 +289,7 @@ recalculateHash( tr_torrent * tor,
|
||||||
size_t bytesLeft;
|
size_t bytesLeft;
|
||||||
uint32_t offset = 0;
|
uint32_t offset = 0;
|
||||||
tr_bool success = TRUE;
|
tr_bool success = TRUE;
|
||||||
const size_t buflen = 1024 * 256; /* 256 KiB buffer */
|
const size_t buflen = MAX_BLOCK_SIZE;
|
||||||
void * buffer = tr_valloc( buflen );
|
void * buffer = tr_valloc( buflen );
|
||||||
SHA_CTX sha;
|
SHA_CTX sha;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue