diff options
| author | Ben Straub <bstraub@github.com> | 2012-07-11 15:33:19 -0700 |
|---|---|---|
| committer | Ben Straub <bstraub@github.com> | 2012-07-11 15:41:37 -0700 |
| commit | 81167385e90e7059a9610e8f7f3e8201dc6d46b9 (patch) | |
| tree | b8dc3dc284155a510c79c0ce35c1d1e2aea579ce /src/checkout.c | |
| parent | d024419f165e81f59d919bd56d84abf8e9fb9f57 (diff) | |
| download | libgit2-81167385e90e7059a9610e8f7f3e8201dc6d46b9.tar.gz | |
Fix compile and workings on msvc.
Signed-off-by: Ben Straub <bstraub@github.com>
Diffstat (limited to 'src/checkout.c')
| -rw-r--r-- | src/checkout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c index b9b5bc1f9..907253fec 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -36,16 +36,16 @@ static int apply_filters(git_buf *out, size_t len) { int retcode = GIT_ERROR; + git_buf origblob = GIT_BUF_INIT; git_buf_clear(out); if (!filters->length) { /* No filters to apply; just copy the result */ - git_buf_put(out, data, len); + git_buf_put(out, (const char *)data, len); return 0; } - git_buf origblob = GIT_BUF_INIT; git_buf_attach(&origblob, (char*)data, len); retcode = git_filters_apply(out, &origblob, filters); git_buf_detach(&origblob); |
