Evan Klitzke personal blog
Beware of strncpy and strncat
Most C programmers also know to avoid the legacy strcpy() and strcat() functions, as these commonly introduce buffer-overflow problems. Instead, C programmers should use the newer strncpy() and strncat() functions, which check the size of the buffer they're copying data into.
- Points
- 108
- HN comments
- 169
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringSecurity & Privacy2018
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Jun 6, 2018 | Beware of strncpy and strncat by eklitzke | 108 | 169 |