# HG changeset patch # User Andreas Schwab # Date 1285097639 -7200 # Node ID 3132ab826fc55909d9409f748b375f7515b0a7a3 # Parent 23f268fa978d784aa8391d5c2d6c7ee138d64cc7 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as the regions may overlap. diff -r 23f268fa978d -r 3132ab826fc5 src/ChangeLog --- a/src/ChangeLog Tue Sep 21 14:49:59 2010 +0200 +++ b/src/ChangeLog Tue Sep 21 21:33:59 2010 +0200 @@ -1,3 +1,8 @@ +2010-09-21 Ari Roponen (tiny change) + + * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as + the regions may overlap. + 2010-09-21 Juanma Barranquero * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies. diff -r 23f268fa978d -r 3132ab826fc5 src/doc.c --- a/src/doc.c Tue Sep 21 14:49:59 2010 +0200 +++ b/src/doc.c Tue Sep 21 21:33:59 2010 +0200 @@ -678,7 +678,7 @@ } pos += end - buf; filled -= end - buf; - memcpy (buf, end, filled); + memmove (buf, end, filled); } emacs_close (fd); return Qnil;