Searched refs:srclen (Results 1 – 1 of 1) sorted by relevance
518 size_t srclen = nla_len(nla); in nla_strlcpy() local521 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strlcpy()522 srclen--; in nla_strlcpy()525 size_t len = (srclen >= dstsize) ? dstsize - 1 : srclen; in nla_strlcpy()531 return srclen; in nla_strlcpy()544 size_t srclen = nla_len(nla); in nla_strdup() local547 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strdup()548 srclen--; in nla_strdup()550 dst = kmalloc(srclen + 1, flags); in nla_strdup()552 memcpy(dst, src, srclen); in nla_strdup()[all …]