diff src/doc.c @ 110463:3132ab826fc5

* doc.c (Fsnarf_documentation): Use memmove instead of memcpy as the regions may overlap.
author Andreas Schwab <schwab@linux-m68k.org>
date Tue, 21 Sep 2010 21:33:59 +0200
parents ce960720ed3f
children 43adca79c8fd
line wrap: on
line diff
--- 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;