Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
short i/o: fix calls to write to use xwrite or write_in_full
[gitweb.git]
/
http-fetch.c
diff --git
a/http-fetch.c
b/http-fetch.c
index 50a3b005ab65b422d9d02010c75c5ecdc115f034..fe8cd7bdcd18748d9dac839e3298a16f85d91007 100644
(file)
--- a/
http-fetch.c
+++ b/
http-fetch.c
@@
-71,7
+71,7
@@
static size_t fwrite_sha1_file(void *ptr, size_t eltsize, size_t nmemb,
int posn = 0;
struct object_request *obj_req = (struct object_request *)data;
do {
- ssize_t retval = write(obj_req->local,
+ ssize_t retval =
x
write(obj_req->local,
(char *) ptr + posn, size - posn);
if (retval < 0)
return posn;