News for hackers. Stuff that matters.
Re:Learn C The Hard Way by Zed Shaw by yxhuvud on Monday June 11, 2012 @05:18PM (#4097082)
No, you should NOT use strncpy instead. It can create broken strings that are not NULL terminated.

I would suggest using strlcpy.

There are no comments on this comment yet.