Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eq-
· 12y ago · 0 comments
It depends. It's not like there's no safe way of using strcpy and sprintf.
Comments
[–]
pconner
12y ago
The safe way to use strcpy is to use strncpy
[–]
abadcafe
12y ago
no,strncpy is worse than strcpy,the right way is strlcpy.
[–]
gandalf013
12y ago
http://benpfaff.org/writings/clc/strncpy.html