diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-06 14:42:03 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-06 14:42:07 -0700 |
commit | 07f93358ac7bc532b16ceff13bed356ac2a0c6f1 (patch) | |
tree | c2ede144ed1c369a2b0a32c75dfdae9fc8f555b3 | |
parent | 185a91c6e7f7e40d916f0554df2aceb73509fd52 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |