4 comments

[ 3.1 ms ] story [ 24.5 ms ] thread
Loved this line:

    strncpy (d, s, strlen(s))
As long as you use strncpy, it must be safe!
(comment deleted)