Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
teo_zero
10 months ago
|
parent
|
context
|
favorite
| on:
Improvements to static analysis in GCC 14
I'd rather put the final nul at d+l-1 than at d+l, so that l can be the size of d, not "one more than the size of d":
strncpyz(buf,src,sizeof buf);
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: