Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Save errno in handle_alias()
[gitweb.git]
/
ssh-fetch.c
diff --git
a/ssh-fetch.c
b/ssh-fetch.c
index e3067b878e8721886c9fe61b136b46415165671d..1e59cd2008d8089efef74b940d1a1094add7e687 100644
(file)
--- a/
ssh-fetch.c
+++ b/
ssh-fetch.c
@@
-24,7
+24,7
@@
static ssize_t force_write(int fd, void *buffer, size_t length)
{
ssize_t ret = 0;
while (ret < length) {
- ssize_t size = write(fd, buffer + ret, length - ret);
+ ssize_t size = write(fd,
(char *)
buffer + ret, length - ret);
if (size < 0) {
return size;
}