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

That's why strlcpy is safer than strncpy, it makes sure that the destination string will always be zero-terminated.



Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: