kdb: use memmove instead of overlapping memcpy