* doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
[bpt/emacs.git] / src / doc.c
index f8ab9d0..36f7c0e 100644 (file)
--- a/src/doc.c
+++ b/src/doc.c
@@ -678,7 +678,7 @@ the same file name is found in the `doc-directory'.  */)
        }
       pos += end - buf;
       filled -= end - buf;
-      memcpy (buf, end, filled);
+      memmove (buf, end, filled);
     }
   emacs_close (fd);
   return Qnil;