]> git.lizzy.rs Git - zlib.git/commit
Replace use of memmove() with a simple copy for portability.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 18 Feb 2012 16:19:59 +0000 (08:19 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 18 Feb 2012 21:37:45 +0000 (13:37 -0800)
commitd1714a57c59173837fc3d9c027e18ad6a1b6fc52
treef736eec5f2ba78a228e4486627051e5ca79f8854
parent455adc302965e0fc0e8b084c204d055ae3d66606
Replace use of memmove() with a simple copy for portability.

SunOS 4.1 doesn't have memmove(), and there may be others.  memcpy()
should not be used for overlapping copies, so here a simple copy is
implemented that works for the particular direction of the overlap,
which is where the destination precedes the source.
gzread.c