NRK's Homepage personal blog
I'm not a fan of strlcpy(3)
strlcpy(3) is an OpenBSD function which is often hailed as a safer replacement for strcpy(3) and/or strncpy(3) . One of the obvious issues with strlcpy is that it's not safe if src isn't null-terminated. However, that's not the reason I don't like strlcpy. In fact despite knowing this, I used to think it was an okay…
- Points
- 196
- HN comments
- 346
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringSecurity & Privacy2024
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Jul 15, 2024 | I'm not a fan of strlcpy(3) by signa11 | 196 | 346 |