Skip to content
Permalink
Browse files
Avoid memcpy on overlapping memory
  • Loading branch information
manisandro committed May 15, 2014
1 parent e880ee4 commit 62ed007fd49fb3cf43dc5c5559683cefb03ba892
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 62ed007

Please sign in to comment.