Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jwilk
· 9y ago · 0 comments
This still appends null bytes to fill the whole buffer, which is almost never what you want.
Use snprintf() or strncat(), as suggested by the article.
Comments
[–]
defined
9y ago
That's not unsafe, which is what the article is about.