News for hackers. Stuff that matters.
Re:Git's list of banned C functions by alcover on Thursday March 04, 2021 @05:28PM (#26349364)
Agreed. It's O(n) inefficient. I guess looping though chars up to `size` would perform better on average.

I see this `strlcpy` recommanded everywhere.

Re:Git's list of banned C functions by attractivechaos on Thursday March 04, 2021 @06:03PM (#26349749)
A few days ago people here were discussing the quadratic sscanf() behavior. strlcpy() has the same problem.