Hacker News new | ask | show | jobs
by pconner 4341 days ago
The safe way to use strcpy is to use strncpy
2 comments

no,strncpy is worse than strcpy,the right way is strlcpy.