News for hackers. Stuff that matters.
Re:Ask HN: What Happened to Borland? by masklinn on Saturday December 11, 2021 @07:47AM (#29520516)
I think one of the other factors (I fear calling it "mitigating") is that fixed-width strings were a lot more common back in the days. Outside of serialization they're pretty much gone now, but we can see their mark in various oddball "string" functions of the C standard library which were never designed to operate on "C strings" (though strings.h also has a lot of functions which are just plain garbage with no redeeming features).

For instance strncmp and (especially) strncpy make very little sense with C strings, but make sense for NUL-padded strings.

There are no comments on this comment yet.