diff options
| author | Ari Roponen | 2010-09-21 21:33:59 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2010-09-21 21:33:59 +0200 |
| commit | 840b985a766f76b61aaa353cba71ce90cb0fc9ed (patch) | |
| tree | d295c1981599271ecf308e3b5867448c48474104 /src/doc.c | |
| parent | 5bc88f4b8aabaeb99461e7c509129f27b2af4d6c (diff) | |
| download | emacs-840b985a766f76b61aaa353cba71ce90cb0fc9ed.tar.gz emacs-840b985a766f76b61aaa353cba71ce90cb0fc9ed.zip | |
* doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
the regions may overlap.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -678,7 +678,7 @@ the same file name is found in the `doc-directory'. */) | |||
| 678 | } | 678 | } |
| 679 | pos += end - buf; | 679 | pos += end - buf; |
| 680 | filled -= end - buf; | 680 | filled -= end - buf; |
| 681 | memcpy (buf, end, filled); | 681 | memmove (buf, end, filled); |
| 682 | } | 682 | } |
| 683 | emacs_close (fd); | 683 | emacs_close (fd); |
| 684 | return Qnil; | 684 | return Qnil; |