diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-06-15 16:05:33 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2011-06-15 21:10:10 +0200 |
| commit | a64bf21bbb5f79d3ac523087a2953a35adbb896f (patch) | |
| tree | 86daa47b88cc083879eb952c225a8708d677c0af /src/fileops.c | |
| parent | a51201cc738eda4d8938672eaa636ac088316df4 (diff) | |
| download | libgit2-a64bf21bbb5f79d3ac523087a2953a35adbb896f.tar.gz | |
blob: Fix git_blob_create_fromfile()
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index 2a78764c6..2136c913e 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -97,7 +97,7 @@ int gitfo_read(git_file fd, void *buf, size_t cnt) cnt -= r; b += r; } - return GIT_SUCCESS; + return (int)(b - (char *)buf); } int gitfo_write(git_file fd, void *buf, size_t cnt) |
