Strcpy and strcat

Both strcpy and particularly strcat can 'overflow' the memory allocated for the result.
The 'safe' versions are strlcpy and strlcat which test/prevent overflows
See strlcpy_strlcat.ino for examples of their use.

In the above #5 examples you would get a buffer/memory overflow if you tried to add more than 24 chars to text. In that case your sketch usually just crashes, which means no debug prints to say what was wrong.
See this post for an example Use of string char causes Arduino code to restart

I also have a SafeString library that works on char[ ]s but guards against buffer overflows and prints a detailed message if you get the size of buffer wrong (no crashes)
SafeString provides safe high level methods for working with text, like trim, replace, substring etc