Or strncpy with length - 1 would be also good, since it won't copy
   foo\0bar\0
fully, but only
   foo\0
into the buffer and store it as
   foo\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
and gaurantee the \0 on the in-kernel buffer.

Reply via email to