]> git.proxmox.com Git - libgit2.git/blobdiff - tests/apply/fromfile.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / apply / fromfile.c
index ae519eab051098a9b759727bffa8f9290c10991a..8cde623928a89aed18a7cbfb62efc2c6fb507c1f 100644 (file)
@@ -30,8 +30,8 @@ static int apply_patchfile(
        unsigned int mode_expected)
 {
        git_patch *patch;
-       git_buf result = GIT_BUF_INIT;
-       git_buf patchbuf = GIT_BUF_INIT;
+       git_str result = GIT_STR_INIT;
+       git_str patchbuf = GIT_STR_INIT;
        char *filename;
        unsigned int mode;
        int error;
@@ -50,8 +50,8 @@ static int apply_patchfile(
        }
 
        git__free(filename);
-       git_buf_dispose(&result);
-       git_buf_dispose(&patchbuf);
+       git_str_dispose(&result);
+       git_str_dispose(&patchbuf);
        git_patch_free(patch);
 
        return error;