Re: [PATCH] vt: fix memory overlapping when deleting chars in the buffer

From: Yangxi Xiang
Date: Tue Jun 28 2022 - 04:59:47 EST


>> Both of them works, and I pick one of them.
>
> Sorry, I don't understand.

We can use both scr_memcpyw() and scr_memmovew() for the not
overlapping case (cp <= nr), which is more likely to happen.
In this case I keep using scr_memcpyw().

Yangxi Xiang