diff options
author | Junio C Hamano <junkio@cox.net> | 2007-01-11 13:15:51 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-11 13:19:31 -0800 |
commit | d1b2ddc8638357987ff3a658fe233ffa5ff2acee (patch) | |
tree | 61ea33a6922ef5f618a15e99a4a9c724d03593a5 /index-pack.c | |
parent | f6aa66cb959393b6605a3288a3080d92d0983d78 (diff) | |
download | git-d1b2ddc8638357987ff3a658fe233ffa5ff2acee.tar.gz |
index-pack: write-or-die instead of unchecked write-in-full.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'index-pack.c')
-rw-r--r-- | index-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index-pack.c b/index-pack.c index 8d10d6ba24..72e0962415 100644 --- a/index-pack.c +++ b/index-pack.c @@ -814,7 +814,7 @@ static void final(const char *final_pack_name, const char *curr_pack_name, char buf[48]; int len = snprintf(buf, sizeof(buf), "%s\t%s\n", report, sha1_to_hex(sha1)); - write_in_full(1, buf, len); + write_or_die(1, buf, len); /* * Let's just mimic git-unpack-objects here and write |