summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-01-25 22:00:59 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-01-25 22:00:59 (GMT)
commit22598c30bceb542c00b830b9c07a235bd93a9028 (patch)
tree6fd938162b644bab271af5249900538d9245cefc /generic/tkImgPhoto.c
parenta0c377d715163a11f283a3a2ef196dad917a7c4f (diff)
downloadtk-22598c30bceb542c00b830b9c07a235bd93a9028.zip
tk-22598c30bceb542c00b830b9c07a235bd93a9028.tar.gz
tk-22598c30bceb542c00b830b9c07a235bd93a9028.tar.bz2
Bug-2433260: non-critical error in Tk_PhotoPutBlock
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r--generic/tkImgPhoto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 3f439de..80b44d7 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -4406,7 +4406,7 @@ Tk_PhotoPutBlock(handle, blockPtr, x, y, width, height, compRule)
/*
* Copy the data into our local 32-bit/pixel array.
- * If we can do it with a single memcpy, we do.
+ * If we can do it with a single memmove, we do.
*/
destLinePtr = masterPtr->pix32 + (y * masterPtr->width + x) * 4;
@@ -4414,7 +4414,7 @@ Tk_PhotoPutBlock(handle, blockPtr, x, y, width, height, compRule)
/*
* This test is probably too restrictive. We should also be able to
- * do a memcpy if pixelSize == 3 and alphaOffset == 0. Maybe other cases
+ * do a memmove if pixelSize == 3 and alphaOffset == 0. Maybe other cases
* too.
*/
if ((blockPtr->pixelSize == 4)
@@ -4423,7 +4423,7 @@ Tk_PhotoPutBlock(handle, blockPtr, x, y, width, height, compRule)
&& ((height == 1) || ((x == 0) && (width == masterPtr->width)
&& (blockPtr->pitch == pitch)))
&& (compRule == TK_PHOTO_COMPOSITE_SET)) {
- memcpy((VOID *) destLinePtr,
+ memmove((VOID *) destLinePtr,
(VOID *) (blockPtr->pixelPtr + blockPtr->offset[0]),
(size_t) (height * width * 4));
} else {