#793: Set PNG comment correctly. (Thomas Beutlich)

This commit is contained in:
Andreas Huggel
2011-10-10 15:11:10 +00:00
parent a8166f1dc2
commit 2a821a52ae
+1 -1
View File
@@ -400,7 +400,7 @@ namespace Exiv2 {
&& memcmp("Description", key, 11) == 0
&& pImage->comment().empty())
{
pImage->comment().assign(reinterpret_cast<char*>(arr.pData_), arr.size_);
pImage->setComment(std::string(reinterpret_cast<char*>(arr.pData_), arr.size_));
}
} // PngChunk::parseChunkContent