logoalt Hacker News

kccqzylast Tuesday at 9:02 PM0 repliesview on HN

When you write such code your mental model is C strings, not fixed-width strings, the intended use case for strncpy.