Re:Strlcpy and strlcat added to glibc 2.38
by silon42 on Tuesday July 18, 2023 @03:39AM
(#36769109)
A purist would support removing strcpy, etc... but that wouldn't go well, so adding an improvement is acceptable.
[ Parent
| on HN ]
Re:Strlcpy and strlcat added to glibc 2.38
by masklinn on Tuesday July 18, 2023 @04:06AM
(#36769302)
> A purist would support removing strcpy, etc...
That is very much Drepper’s position:
> Correct string handling means that you always know how long your strings are and therefore you can you memcpy (instead of strcpy).
> Beside, those who are using strcat or variants deserved to be punished.