Skip to content

Commit

Permalink
index-pack: write-or-die instead of unchecked write-in-full.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jan 11, 2007
1 parent f6aa66c commit d1b2ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1b2ddc

Please sign in to comment.