diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-14 13:21:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-14 17:13:44 +0100 |
commit | b2b5bc10b6574e4717f651602c970bdb20abd1a7 (patch) | |
tree | 135c47ee2099de09984d40e8f461c4d584714a13 | |
parent | 61550120b45640898677c7f765a491737445954f (diff) |
valgrind: Source and destination overlap in memcpy
Change-Id: I0b83a1955b6752c1253cfd7992a50b932aac078d
-rw-r--r-- | filter/source/graphicfilter/icgm/bundles.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/icgm/bundles.cxx b/filter/source/graphicfilter/icgm/bundles.cxx index 8ec42c558d9e..17d11564e85f 100644 --- a/filter/source/graphicfilter/icgm/bundles.cxx +++ b/filter/source/graphicfilter/icgm/bundles.cxx @@ -201,7 +201,7 @@ void CGMFList::InsertName( sal_uInt8* pSource, sal_uInt32 nSize ) sal_uInt32 nToCopy = nSize - nToCopyOfs - nPrev; if ( nToCopy ) { - memcpy( pFound, pFound + nToCopyOfs, nToCopy ); + memmove( pFound, pFound + nToCopyOfs, nToCopy ); } nSize -= nToCopyOfs; } @@ -221,7 +221,7 @@ void CGMFList::InsertName( sal_uInt8* pSource, sal_uInt32 nSize ) sal_uInt32 nToCopy = nSize - nToCopyOfs - nPrev; if ( nToCopy ) { - memcpy( pFound, pFound + nToCopyOfs, nToCopy ); + memmove( pFound, pFound + nToCopyOfs, nToCopy ); } nSize -= nToCopyOfs; } |