Update src/jpgimage.cpp

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
This commit is contained in:
Mohamed Ali Chebbi 2023-04-13 04:56:07 +02:00 committed by Rosen Penev
parent a530cf9d03
commit 7ab4554c41

View File

@ -153,7 +153,7 @@ void JpegBase::readMetadata() {
// Read the rest of the segment.
DataBuf buf(size);
/// check if the segment is not empty
// check if the segment is not empty
if (size > 2) {
io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());