logoalt Hacker News

formerly_provenlast Tuesday at 5:26 PM0 repliesview on HN

> strncpy doesn’t handle overlapping buffers (undefined behavior).

It would make little sense for strncpy to handle this case, since, as I pointed out above, it converts between different kinds of strings.