Hacker News new | ask | show | jobs
by outsomnia 885 days ago
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

1 comments

That's right, I knew this at some point but haven't been doing much C lately. Thank you for the refresh!