diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-06 11:32:02 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-06 11:32:08 -0700 |
commit | b0b9b4c5a134c559404b4052c2c42b9fcde66915 (patch) | |
tree | 6c57d2ee236216bc0ba3b1257fc34a640394edfa | |
parent | 2ca9da7c52152add1567deb11000cf9570577b12 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |