Hacker News new | past | comments | ask | show | jobs | submit login

Coverity used to suggest using strncpy instead of strcpy for a while, which if you blindly follow leads to nasty errors. If someone wonders, snprintf was the correct alternative at the time, I have no idea if the C standard has anything better now.



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

Search: