Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 0f0a094
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 0f0a094

Please sign in to comment.