From 61bb4bc02e662a33ae0d7a9747d28898ed847276 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 1 Jul 2008 11:33:06 +0000 Subject: [PATCH] 2008-07-01 Tatsuhiro Tsujikawa Use append instead of insert. * src/GZipDecoder.cc --- ChangeLog | 5 +++++ src/GZipDecoder.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f026c438..ba7cf30d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-07-01 Tatsuhiro Tsujikawa + + Use append instead of insert. + * src/GZipDecoder.cc + 2008-07-01 Tatsuhiro Tsujikawa Updated doc diff --git a/src/GZipDecoder.cc b/src/GZipDecoder.cc index 81f46d2c..c102f21c 100644 --- a/src/GZipDecoder.cc +++ b/src/GZipDecoder.cc @@ -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;