Daniel Stenberg personal blog
No strcpy either
Some time ago I mentioned that we went through the curl source code and eventually got rid of all strncpy() calls. strncpy() is a weird function with a crappy API. It might not null terminate the destination and it pads the target buffer with zeroes. Quite frankly, most code bases are probably better off completely ……
- Points
- 265
- HN comments
- 145
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringSecurity & Privacy2025
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Dec 30, 2025 | No strcpy either by firesteelrain | 265 | 145 |