Lines Matching refs:p_len
309 size_t p_len, c_len;
317 p_len = strlen(path);
319 if (p_len > SIZE_MAX - c_len || p_len + c_len > SIZE_MAX - 2)
321 fullpath = av_malloc(p_len + c_len + 2);
323 if (p_len) {
324 av_strlcpy(fullpath, path, p_len + 1);
326 if (fullpath[p_len - 1] != '/' && component[0] != '/')
327 fullpath[p_len++] = '/';
328 else if (fullpath[p_len - 1] == '/' && component[0] == '/')
329 p_len--;
332 av_strlcpy(&fullpath[p_len], component, c_len + 1);
333 fullpath[p_len + c_len] = 0;