Use memmove() instead of memcpy() for copying overlapping regions.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 6141983fb4da3577efdceca74c06209448b9c76b
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-02-10T08:00:50Z
Releases: 8.4.20
Use memmove() instead of memcpy() for copying overlapping regions.

In commit d2495f272cd164ff075bee5c4ce95aed11338a36, I fixed this bug in
to_tsquery(), but missed the fact that plainto_tsquery() has the same bug.

Files

PathChange+/−
src/backend/tsearch/to_tsany.c modified +6 −1