mirror of https://github.com/aria2/aria2
2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Use append instead of insert. * src/GZipDecoder.ccpull/1/head
parent
151624ffcb
commit
61bb4bc02e
|
@ -1,3 +1,8 @@
|
|||
2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Use append instead of insert.
|
||||
* src/GZipDecoder.cc
|
||||
|
||||
2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Updated doc
|
||||
|
|
|
@ -97,7 +97,7 @@ std::string GZipDecoder::decode(const unsigned char* in, size_t length)
|
|||
|
||||
size_t produced = OUTBUF_LENGTH-_strm->avail_out;
|
||||
|
||||
out.insert(out.end(), &outbuf[0], &outbuf[produced]);
|
||||
out.append(&outbuf[0], &outbuf[produced]);
|
||||
|
||||
if(_strm->avail_out > 0) {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue