When strcat is used, the memory spaces pointed to by s1 and s2 cannot overlap, and s1 must have enough space to accommodate the string to be copied, such as:
This blog post is really valuable. I want to collect it for research and study. You can also study it and learn C language well.