diff options
Diffstat (limited to 'tests/patch/print.c')
| -rw-r--r-- | tests/patch/print.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/patch/print.c b/tests/patch/print.c index a07328fa8..047b48e8f 100644 --- a/tests/patch/print.c +++ b/tests/patch/print.c @@ -1,4 +1,5 @@ #include "clar_libgit2.h" +#include "patch.h" #include "patch_common.h" @@ -12,7 +13,7 @@ void patch_print_from_patchfile(const char *data, size_t len) git_patch *patch; git_buf buf = GIT_BUF_INIT; - cl_git_pass(git_patch_from_patchfile(&patch, data, len, NULL)); + cl_git_pass(git_patch_from_buffer(&patch, data, len, NULL)); cl_git_pass(git_patch_to_buf(&buf, patch)); cl_assert_equal_s(data, buf.ptr); |
