aboutsummaryrefslogtreecommitdiff
path: root/ssh-fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-fetch.c')
-rw-r--r--ssh-fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh-fetch.c b/ssh-fetch.c
index e3067b878..1e59cd200 100644
--- 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;
}