index-pack: write-or-die instead of unchecked write-in-full.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jan 11, 2007 at 13:15 UTC
d1b2ddc8638357987ff3a658fe233ffa5ff2acee
1 file changed
+1
-1
index-pack.c
+1
-1
@@ -814,7 +814,7 @@ static void final(const char *final_pack_name, const char *curr_pack_name,
814
char buf[48];
815
int len = snprintf(buf, sizeof(buf), "%s\t%s\n",
816
report, sha1_to_hex(sha1));
817
- write_in_full(1, buf, len);
817
+ write_or_die(1, buf, len);
818
819
/*
820
* Let's just mimic git-unpack-objects here and write