kstrndup
kstrndup(const char *str, size_t maxlen, struct malloc_type *type)
char *kstrndup(const char *, size_t maxlen, struct malloc_type *)
kstrndup(str, maxlen, type)
key = kstrndup(component, componentlen, M_AUTOFS);
anp->an_name = kstrndup(name, namelen, M_AUTOFS);
find.an_name = kstrndup(name, namelen, M_AUTOFS);