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

SubmittedTitle on HNPointsComments
Jul 15, 2024I'm not a fan of strlcpy(3) by signa11196346

More from NRK's Homepage

All 4 posts →

Related posts from the same era