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

SubmittedTitle on HNPointsComments
Jun 6, 2018Beware of strncpy and strncat by eklitzke108169

More from Evan Klitzke

All 9 posts →

Related posts from the same era