2 ms·
> M$FT bad, therefore anything they do is bad That's backward; it's actually "anything [rather, most things] Microsoft does is bad, therefore Microsoft is bad"
by a1369209993 6y ago
> M$FT bad, therefore anything they do is bad
That's backward; it's actually "anything [rather, most things] Microsoft does is bad, therefore Microsoft is bad".
And (most of) Annex K is a example of that.
(The strncpy/_s one is bit odd though, because strncpy was specifically for initializing a fixed-length buffer, which is not nul-terminated, but rather nul-padded. strncpy works fine for that purpose, although nobody uses nul-padded buffers anymore. Using it as a size-aware strcpy was always wrong; you should use strlen+memcpy or a separate str[lzc...]cpy (or strcpy_s I suppose) instead.)