diff options
author | Vicent Martà <vicent@github.com> | 2013-03-18 14:05:31 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-03-18 14:05:31 -0700 |
commit | 50eb8520d06ac0c484a0ce3a3fba6c5da25ec976 (patch) | |
tree | a24fd75f4dc96b71ffb41267899a9b8106b58158 /src/diff_output.c | |
parent | 677dce8a77be0631c02acd20b23c3d4e43ccd41b (diff) | |
parent | 10c06114cbb1c384b7de3cca6d6601ee750f5178 (diff) | |
download | libgit2-50eb8520d06ac0c484a0ce3a3fba6c5da25ec976.tar.gz |
Merge pull request #1420 from KindDragon/static-code-analyzer-warnings
Several warnings detected by static code analyzer fixed
Diffstat (limited to 'src/diff_output.c')
-rw-r--r-- | src/diff_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_output.c b/src/diff_output.c index c0aff6826..b938cc06d 100644 --- a/src/diff_output.c +++ b/src/diff_output.c @@ -390,7 +390,7 @@ static int get_workdir_content( map->data = git__malloc(alloc_len); GITERR_CHECK_ALLOC(map->data); - read_len = p_readlink(path.ptr, map->data, (int)alloc_len); + read_len = p_readlink(path.ptr, map->data, alloc_len); if (read_len < 0) { giterr_set(GITERR_OS, "Failed to read symlink '%s'", file->path); error = -1; |