tree-diff: rework diff_tree interface to be sha1 based
[gitweb.git] / streaming.c
index 9659f18be263a3412a2f3e5d13eb4f4bcd25cee3..d7c9f32f0ce98112ddd4d4a8499b227b181e09e6 100644 (file)
@@ -538,7 +538,7 @@ int stream_blob_to_fd(int fd, unsigned const char *sha1, struct stream_filter *f
                        goto close_and_exit;
        }
        if (kept && (lseek(fd, kept - 1, SEEK_CUR) == (off_t) -1 ||
-                    write(fd, "", 1) != 1))
+                    xwrite(fd, "", 1) != 1))
                goto close_and_exit;
        result = 0;