No strcpy either.
daniel.haxx.se/blog/2025/12/29…
#curl
no strcpy either
Some time ago I mentioned that we went through the curl source code and eventually got rid of all strncpy() calls. strncpy() is a weird function with a crappy API. It might not null terminate the destination and it pads the target buffer with zeroes.daniel.haxx.se


vsz
in reply to daniel:// stenberg:// • • •No strcpy either | Hacker News
news.ycombinator.comdaniel:// stenberg:// reshared this.
Roger Sen
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to daniel:// stenberg:// • • •🤦♂️
daniel.haxx.se/blog/2025/12/29…
no strcpy either
daniel.haxx.sePeter Bindels
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Peter Bindels • • •Ted Mielczarek
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Ted Mielczarek • • •Third spruce tree on the left
in reply to daniel:// stenberg:// • • •Taxo Rubio:wq
in reply to daniel:// stenberg:// • • •fraggle
in reply to daniel:// stenberg:// • • •synlogic4242
in reply to daniel:// stenberg:// • • •Billy O'Neal
in reply to daniel:// stenberg:// • • •Henryk Plötz
in reply to daniel:// stenberg:// • • •abadidea
in reply to daniel:// stenberg:// • • •Shawn Webb
in reply to daniel:// stenberg:// • • •memcpy(3)overmemove(3). Not all implementations ofmemcpy(3)support overlapping regions.daniel:// stenberg://
in reply to Shawn Webb • • •