Navigation Menu

Skip to content

Commit

Permalink
Avoid memcpy on overlapping memory
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed May 15, 2014
1 parent e880ee4 commit 62ed007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaptopixelgeometrysimplifier.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 62ed007

Please sign in to comment.