Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eq-
on July 25, 2014
|
parent
|
context
|
favorite
| on:
Nope.c – A web framework with a tiny footprint
It depends. It's not like there's no safe way of using strcpy and sprintf.
pconner
on July 25, 2014
[–]
The safe way to use strcpy is to use strncpy
abadcafe
on July 25, 2014
|
parent
|
next
[–]
no,strncpy is worse than strcpy,the right way is strlcpy.
gandalf013
on July 25, 2014
|
parent
|
prev
[–]
http://benpfaff.org/writings/clc/strncpy.html
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: