From: Tsuda Kageyu Date: Sat, 20 Feb 2016 15:43:33 +0000 (+0900) Subject: Make the code in ByteVector::append() a bit more clearer. X-Git-Tag: v1.11beta2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01054009ac327958622b58efc50de746b36fd142;p=taglib Make the code in ByteVector::append() a bit more clearer. --- diff --git a/taglib/toolkit/tbytevector.cpp b/taglib/toolkit/tbytevector.cpp index 841b5667..0d6538d9 100644 --- a/taglib/toolkit/tbytevector.cpp +++ b/taglib/toolkit/tbytevector.cpp @@ -562,7 +562,7 @@ ByteVector &ByteVector::append(const ByteVector &v) const unsigned int originalSize = size(); const unsigned int appendSize = v.size(); - resize(originalSize + v.size()); + resize(originalSize + appendSize); ::memcpy(data() + originalSize, v.data(), appendSize); return *this;