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