diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 15:20:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-11 15:20:50 -0500 |
| commit | ceddeed80a21f0d3a3396d90dd61fada361ed745 (patch) | |
| tree | 1b21dd455b3fbffcd4d5da52f5e8a58785510dd4 /src/diff_stats.c | |
| parent | 9ab351c0d5330106b5562524cd303cbd5789a1d8 (diff) | |
| parent | 1a8b2922d953e78bd51fc6d5ef290e1f7e00af3a (diff) | |
| download | libgit2-ceddeed80a21f0d3a3396d90dd61fada361ed745.tar.gz | |
Merge pull request #6104 from libgit2/ethomson/path
path: refactor utility path functions
Diffstat (limited to 'src/diff_stats.c')
| -rw-r--r-- | src/diff_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_stats.c b/src/diff_stats.c index 228f6f892..259939844 100644 --- a/src/diff_stats.c +++ b/src/diff_stats.c @@ -70,7 +70,7 @@ static int diff_file_stats_full_to_buf( padding = stats->max_name - strlen(old_path) - strlen(new_path); - if ((common_dirlen = git_path_common_dirlen(old_path, new_path)) && + if ((common_dirlen = git_fs_path_common_dirlen(old_path, new_path)) && common_dirlen <= INT_MAX) { error = git_str_printf(out, " %.*s{%s"DIFF_RENAME_FILE_SEPARATOR"%s}", (int) common_dirlen, old_path, |
