summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-06 11:32:02 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-06 11:32:08 -0700
commitb0b9b4c5a134c559404b4052c2c42b9fcde66915 (patch)
tree6c57d2ee236216bc0ba3b1257fc34a640394edfa
parent2ca9da7c52152add1567deb11000cf9570577b12 (diff)
Use memcpy() instead of memmove() when buffers are known not to overlap
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpr.c b/xpr.c
index 547cfa5..bf549dd 100644
--- a/xpr.c
+++ b/xpr.c
@@ -1239,7 +1239,7 @@ void ps_output_bits(
ibuf = (unsigned char *)malloc((unsigned)(iwb + 3));
for (i=0;i<ih;i++) {
- memmove((char *)ibuf, (char *)buffer, iwb);
+ memcpy(ibuf, buffer, iwb);
buffer += iwb;
if (!(*(char *) &swaptest))
_swaplong((char *)ibuf,(long)iwb);