Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It depends. It's not like there's no safe way of using strcpy and sprintf.


The safe way to use strcpy is to use strncpy


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





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: