Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
schlupa
on March 5, 2021
|
parent
|
context
|
favorite
| on:
Git's list of banned C functions
Also most of the time people have serious performance regressions with strncpy() as the function overwrites with 0 all the test of the buffer.
char buffer[2000]; strcpy(buffer, "hello", sizeof buffer);
writes "hello" and 1995 0 to the buffer.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: