]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin-tar-tree.c
short i/o: fix calls to write to use xwrite or write_in_full
[thirdparty/git.git] / builtin-tar-tree.c
index ad802fc1aa7fe2b487b2ffdac68f27df82ebc941..8055ddab9b07e017a832e2fedf31b35fa0788a13 100644 (file)
@@ -82,7 +82,7 @@ int cmd_get_tar_commit_id(int argc, const char **argv, const char *prefix)
        if (memcmp(content, "52 comment=", 11))
                return 1;
 
-       n = xwrite(1, content + 11, 41);
+       n = write_in_full(1, content + 11, 41);
        if (n < 41)
                die("git-get-tar-commit-id: write error");