smurf: replace strncpy with one_strlcpy

Since this was used to truncate the string, strncpy is guaranteed
not to terminate the string properly.  Also checked against the
size of the buffer being written into.