diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-12-14 03:24:16 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-12-14 03:24:16 +0100 |
commit | 7af26f8f5816ba602a30bbc1c8eb8eced1247bd6 (patch) | |
tree | acf596bb5695fe26329e36a5f4fbdda6dc3d7268 | |
parent | 40e73d6f8886d27ae9c7df059d995221e6d84710 (diff) | |
download | libgit2-7af26f8f5816ba602a30bbc1c8eb8eced1247bd6.tar.gz |
Fix tree-diff with the new path API
-rw-r--r-- | src/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c index 1015bd054..b698a8a24 100644 --- a/src/tree.c +++ b/src/tree.c @@ -1031,12 +1031,12 @@ static int diff_index_cb(const char *root, git_tree_entry *tentry, void *data) int git_tree_diff_index_recursive(git_tree *tree, git_index *index, git_tree_diff_cb cb, void *data) { struct diff_index_cbdata cbdata; - char dummy_path[GIT_PATH_MAX]; + git_buf dummy_path = GIT_BUF_INIT; cbdata.index = index; cbdata.i = 0; cbdata.cb = cb; cbdata.data = data; - return tree_walk_post(tree, diff_index_cb, dummy_path, 0, &cbdata); + return tree_walk_post(tree, diff_index_cb, &dummy_path, &cbdata); } |