xstrndup 240 builtin/clone.c dir = xstrndup(start, len); xstrndup 999 builtin/fetch.c xstrndup(value, wordlen)); xstrndup 351 builtin/grep.c string_list_append(path_list, xstrndup(data, len)); xstrndup 588 builtin/init-db.c char *rel = xstrndup(git_dir, git_dir_parent - git_dir); xstrndup 297 builtin/remote.c merge = xstrndup(value, space - value); xstrndup 342 builtin/worktree.c opts.new_branch = xstrndup(s, n); xstrndup 52 exec_cmd.c argv0_path = xstrndup(argv0, slash - argv0); xstrndup 719 git-compat-util.h extern char *xstrndup(const char *str, size_t len); xstrndup 580 line-log.c range_part = xstrndup(item->string, name_part - item->string); xstrndup 196 line-range.c pattern = xstrndup(arg+1, term-(arg+1)); xstrndup 862 path.c return xstrndup(path, chomp_trailing_dir_sep(path, path_len)); xstrndup 1532 refs.c submodule = xstrndup(path, len); xstrndup 177 remote.c ret->name = xstrndup(name, len); xstrndup 208 remote.c ret->name = xstrndup(name, len); xstrndup 233 remote.c ret->base = xstrndup(base, len); xstrndup 566 remote.c rs[i].dst = xstrndup(rhs, rlen); xstrndup 579 remote.c rs[i].src = xstrndup(lhs, llen); xstrndup 555 sha1_name.c char *tmp = xstrndup(str + at + 2, reflog_len); xstrndup 758 sha1_name.c prefix = xstrndup(sp + 1, name + len - 1 - (sp + 1)); xstrndup 528 trailer.c name = xstrndup(trailer_item, variable_name - trailer_item - 1); xstrndup 979 transport.c helper = xstrndup(url, p - url); xstrndup 349 utf8.c char *tmp = xstrndup(data, len); xstrndup 233 xdiff-interface.c line_buffer = xstrndup(line, len); /* make NUL terminated */ xstrndup 280 xdiff-interface.c expression = buffer = xstrndup(value, ep - value);