Y
Hacker News
new
|
ask
|
show
|
jobs
by
eq-
4509 days ago
It depends. It's not like there's no safe way of using strcpy and sprintf.
1 comments
pconner
4509 days ago
The safe way to use strcpy is to use strncpy
link
abadcafe
4509 days ago
no,strncpy is worse than strcpy,the right way is strlcpy.
link
gandalf013
4509 days ago
http://benpfaff.org/writings/clc/strncpy.html
link