ammend: refactor

- memcpy to copy the p_ptr->y_array to pp.
- xmemdupz < vim_strnsave