mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 13:30:36 -04:00
Fixed compatibility bug in file transfer...
can now communicate between V0.4.9b and V0.4.11+ git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@827 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7c596231e1
commit
71797d6f70
4 changed files with 5 additions and 4 deletions
|
@ -46,7 +46,7 @@ bool ftFileProvider::FileDetails(FileInfo &info)
|
|||
}
|
||||
|
||||
|
||||
bool ftFileProvider::getFileData(uint64_t offset, uint32_t chunk_size, void *data)
|
||||
bool ftFileProvider::getFileData(uint64_t offset, uint32_t &chunk_size, void *data)
|
||||
{
|
||||
/* dodgey checking outside of mutex...
|
||||
* much check again inside FileAttrs().
|
||||
|
@ -71,6 +71,7 @@ bool ftFileProvider::getFileData(uint64_t offset, uint32_t chunk_size, void *dat
|
|||
if (base_loc + data_size > mSize)
|
||||
{
|
||||
data_size = mSize - base_loc;
|
||||
chunk_size = mSize - base_loc;
|
||||
std::cerr <<"Chunk Size greater than total file size, adjusting chunk size " << data_size << std::endl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue