]> git.eshelyaron.com Git - emacs.git/commit
Use memmove instead of memcpy on overlapping regions
authorFredrik Bergroth <fbergroth@gmail.com>
Tue, 23 Feb 2016 11:41:16 +0000 (22:41 +1100)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 15 Jul 2016 00:33:48 +0000 (20:33 -0400)
commit916abe91fd250fc5ed27ec0be7d57421e7908111
treeb7ca5adb623f0519187913f2f210cf4ab80522b8
parent9ba51edf62b25c678508a316ec78a09b18d3bf9e
Use memmove instead of memcpy on overlapping regions

* src/editfns.c (Ftranspose_regions): Regions may overlap, so
use memmove instead of memcpy (bug#19213).

Copyright-paperwork-exempt: yes

This is a backport from trunk.
(cherry picked from commit 354f9f0fc6cc05ed98883447f9b2f37943d79160)
src/editfns.c