Again, `memcpy` and `strlen` here are not convenient.