Ex17, bug with strncpy

Upon my reading of the man pages of strncpy(), would the bug be a buffer overflow, since we are sending a copy with the ‘\0’ terminating character? Or is the char res* just not big enough to hold the copy?

Just curious.

Can you post the code in question and the exact question?

Sorry, but it’s a little cumbersome for us to always look up the exact problem in the book/pdf when we want to help.