mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-16 18:10:40 -04:00
fixed stupid bug in decompression code
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-IdCleaning@7146 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7b44c712df
commit
160a893017
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ bool RsCompress::uncompress_memory_chunk(const uint8_t *input_mem,const uint32_t
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
uint32_t available_in = std::min(CHUNK,remaining_input) ;
|
uint32_t available_in = std::min(CHUNK,remaining_input) ;
|
||||||
memcpy(in,input_mem,available_in) ;
|
memcpy(in,input_mem+input_offset,available_in) ;
|
||||||
strm.avail_in = available_in ;
|
strm.avail_in = available_in ;
|
||||||
remaining_input -= available_in ;
|
remaining_input -= available_in ;
|
||||||
input_offset += available_in ;
|
input_offset += available_in ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue