Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
eq-
11y ago
0 comments
Share
It depends. It's not like there's no safe way of using strcpy and sprintf.
0 comments
default
newest
oldest
pconner
11y ago
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