]> granicus.if.org Git - taglib/commitdiff
Make the code in ByteVector::append() a bit more clearer.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Sat, 20 Feb 2016 15:43:33 +0000 (00:43 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Sat, 20 Feb 2016 15:43:33 +0000 (00:43 +0900)
taglib/toolkit/tbytevector.cpp

index 841b56676f7a24bc2a6eac50bdfedfa4b2870a95..0d6538d9d8e1624cc411de9cf9cf03798fdfa8b0 100644 (file)
@@ -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;