Lines Matching refs:length
42 int length; in parse_subpart() local
51 length = min_t(int, next - partdef, in parse_subpart()
53 strncpy(new_subpart->name, partdef, length); in parse_subpart()
54 new_subpart->name[length] = '\0'; in parse_subpart()
94 int length; in parse_parts() local
111 length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1); in parse_parts()
112 strncpy(newparts->name, bdevdef, length); in parse_parts()
113 newparts->name[length] = '\0'; in parse_parts()
122 length = (!next) ? (sizeof(buf) - 1) : in parse_parts()
125 strncpy(buf, bdevdef, length); in parse_parts()
126 buf[length] = '\0'; in parse_parts()