Skip to content
Permalink
Browse files
Merge pull request #1358 from manisandro/memcpy_overlapping
Avoid memcpy on overlapping memory
  • Loading branch information
jef-n committed May 16, 2014
2 parents 89cdfb9 + 62ed007 commit 0f0a0947ca300c82876f78620c858503a26efeda
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsmaptopixelgeometrysimplifier.cpp
@@ -163,7 +163,7 @@ bool QgsMapToPixelSimplifier::simplifyWkbGeometry( int simplifyFlags, QGis::WkbT
// Write the main header of the geometry
if ( writeHeader )
{
memcpy( targetWkb, sourceWkb, 1 ); // byteOrder
targetWkb[0] = sourceWkb[0]; // byteOrder
sourceWkb += 1;
targetWkb += 1;

0 comments on commit 0f0a094

Please sign in to comment.