The standard behaviour of memcpy involves copying the null terminator.


You are in the realm of undefined behaviour. Don't do this, then you don't have to misunderstand.