summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-01-25 22:06:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-01-25 22:06:29 (GMT)
commit9db0574438d863621647428db163a9720fa1428c (patch)
treee24767f58f219752995c3f7907fb3d339d4df3a9 /generic
parenta79dffd5ead82f09cf96cfb5744ff829e473ebce (diff)
parentd0aa23eb9005cbc9b4e706ab70b5082be80bad35 (diff)
downloadtk-9db0574438d863621647428db163a9720fa1428c.zip
tk-9db0574438d863621647428db163a9720fa1428c.tar.gz
tk-9db0574438d863621647428db163a9720fa1428c.tar.bz2
Bug-2433260: non-critical error in Tk_PhotoPutBlock
Diffstat (limited to 'generic')
-rw-r--r--generic/tkImgPhoto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index ef907e6..a6df6ef 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -4387,7 +4387,7 @@ Tk_PhotoPutBlock(
/*
* Copy the data into our local 32-bit/pixel array. If we can do it with a
- * single memcpy, we do.
+ * single memmove, we do.
*/
destLinePtr = masterPtr->pix32 + (y * masterPtr->width + x) * 4;
@@ -4395,7 +4395,7 @@ Tk_PhotoPutBlock(
/*
* Test to see if we can do the whole write in a single copy. This test is
- * probably too restrictive. We should also be able to do a memcpy if
+ * probably too restrictive. We should also be able to do a memmove if
* pixelSize == 3 and alphaOffset == 0. Maybe other cases too.
*/
@@ -4405,7 +4405,7 @@ Tk_PhotoPutBlock(
&& ((height == 1) || ((x == 0) && (width == masterPtr->width)
&& (blockPtr->pitch == pitch)))
&& (compRule == TK_PHOTO_COMPOSITE_SET)) {
- memcpy(destLinePtr, blockPtr->pixelPtr + blockPtr->offset[0],
+ memmove(destLinePtr, blockPtr->pixelPtr + blockPtr->offset[0],
(size_t) (height * width * 4));
/*