Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Luyt
on March 8, 2011
|
parent
|
context
|
favorite
| on:
Gain control of a Linux System via an USB-Device d...
or sizeof(dst), and not forgetting dst[sizeof(dst)-1]='\0';
wladimir
on March 8, 2011
[–]
That's why strlcpy is safer than strncpy, it makes sure that the destination string will always be zero-terminated.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: