Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imgcodecs(pxm): fix memcpy size #10369

Merged
merged 1 commit into from Dec 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
imgcodecs(pxm): fix memcpy size
  • Loading branch information
alalek committed Dec 21, 2017
commit 7bbe1a53cfc097b82b1589f7915a2120de39274c
2 changes: 1 addition & 1 deletion modules/imgcodecs/src/grfmt_pxm.cpp
Expand Up @@ -333,7 +333,7 @@ bool PxMDecoder::readData( Mat& img )
}
}
else
memcpy( data, src, CV_ELEM_SIZE1(m_type)*m_width);
memcpy(data, src, img.elemSize1()*m_width);
}
else
{
Expand Down