summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-06 14:42:03 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-06 14:42:07 -0700
commit07f93358ac7bc532b16ceff13bed356ac2a0c6f1 (patch)
treec2ede144ed1c369a2b0a32c75dfdae9fc8f555b3
parent185a91c6e7f7e40d916f0554df2aceb73509fd52 (diff)
Use memcpy() instead of memmove() when buffers are known not to overlap
This was introduced by a bcopy() -> memmove() substitution in 1993. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--Array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Array.c b/Array.c
index 6b9b617..5779cec 100644
--- a/Array.c
+++ b/Array.c
@@ -149,7 +149,7 @@ XdmcpCopyARRAY8 (const ARRAY8Ptr src, ARRAY8Ptr dst)
{
if (!XdmcpAllocARRAY8(dst, src->length))
return FALSE;
- memmove (dst->data, src->data, src->length * sizeof (CARD8));
+ memcpy(dst->data, src->data, src->length * sizeof (CARD8));
return TRUE;
}