summaryrefslogtreecommitdiff
path: root/unpack-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'unpack-file.c')
-rw-r--r--unpack-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-file.c b/unpack-file.c
index ccddf1d4b0..d24acc2a67 100644
--- a/unpack-file.c
+++ b/unpack-file.c
@@ -17,7 +17,7 @@ static char *create_temp_file(unsigned char *sha1)
fd = mkstemp(path);
if (fd < 0)
die("unable to create temp-file");
- if (write(fd, buf, size) != size)
+ if (write_in_full(fd, buf, size) != size)
die("unable to write temp-file");
close(fd);
return path;