Thread: pgsql: Use memmove() instead of memcpy() for copying overlapping region

pgsql: Use memmove() instead of memcpy() for copying overlapping region

From
Heikki Linnakangas
Date:
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.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/fe8a6f53e07d2686e3238a237ec64e0fc2d4b123

Modified Files
--------------
src/backend/tsearch/to_tsany.c |    7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)