Y
Hacker News
new
|
ask
|
show
|
jobs
by
dllthomas
4562 days ago
Yeah, my bad, had meant to use strncpy. My contention had been that it only zeroes the first following character (if that). On closer reading of the man page, it is in fact clear.