Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-fetch: move more code into C.
[gitweb.git]
/
unpack-file.c
diff --git
a/unpack-file.c
b/unpack-file.c
index ccddf1d4b0cf7fd3a699d8b33cf5bc4c5c4435b7..d24acc2a67c4b7ba112bd192680b137f30a06003 100644
(file)
--- 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;