Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
eq-
11y ago
0 comments
Save
Share
It depends. It's not like there's no safe way of using strcpy and sprintf.
0 comments
3 comments · 1 top-level
top
newest
oldest
pconner
11y ago
· 2 in thread
The safe way to use strcpy is to use strncpy
abadcafe
11y ago
no,strncpy is worse than strcpy,the right way is strlcpy.
gandalf013
11y ago
http://benpfaff.org/writings/clc/strncpy.html
j
/
k
navigate · click thread line to collapse