Re: strncpy() fails to copy



On Sep 14, 12:44 pm, Keith Thompson <ks...@xxxxxxx> wrote:
Tom St Denis <t...@xxxxxxx> writes:
[...]

What would be cooler is to just suck it up and fix strncat/strncpy
broken apps be damned.  Too much legacy shit gets propagated because
inept committees come up with designs.

That would break the (few) applications that use strncpy *correctly*
for the narrow purpose for which it was designed.

As I said elsethread, the main problem with strncpy() is its misleading
name.

Fair enough and I appreciate you taking the time to explain it.
Thanks.

Tom
.