imgcodecs(pxm): fix memcpy size

pull/10369/head
Alexander Alekhin 7 years ago
parent eecb64a973
commit 7bbe1a53cf
  1. 2
      modules/imgcodecs/src/grfmt_pxm.cpp

@ -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
{

Loading…
Cancel
Save