Lines Matching defs:id_len
163 size_t id_len;
190 id_len = strlen(chunk_name) + 1;
191 if (id_len > PART_STR_MLEN)
192 id_len = PART_STR_MLEN;
194 if ((map->id = malloc(id_len)) == NULL) {
201 strlcpy(map->id, chunk_name, id_len);
233 * reuse id_len from here till the end of this function
236 id_len = strlen(_PATH_DEV) + strlen(chunk_name) + 1;
238 if (id_len > PART_STR_MLEN)
239 id_len = PART_STR_MLEN;
241 if ((entry->label = malloc(id_len )) == NULL) {
247 snprintf(entry->label, id_len, "%s%s", _PATH_DEV, chunk_name);