News for hackers. Stuff that matters.
Re:C and returning values quickly or safely, but not both by outsomnia on Friday January 19, 2024 @06:12AM (#39054127)
There are various 'safer' versions of it, a common one is strlcpy() from bsd (which is in glibc etc)

https://linux.die.net/man/3/strlcpy

Re:C and returning values quickly or safely, but not both by metadat on Friday January 19, 2024 @11:58AM (#39057715)
That's right, I knew this at some point but haven't been doing much C lately. Thank you for the refresh!