aboutsummaryrefslogtreecommitdiff
path: root/libssh/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/channels.c')
-rw-r--r--libssh/channels.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 8b190b4e..2dd9966d 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -24,7 +24,6 @@
#include <string.h>
#include <stdlib.h>
-#include <unistd.h>
#include <stdio.h>
#include <errno.h>
@@ -929,7 +928,7 @@ int channel_write_common(ssh_channel channel, const void *data,
channel->remote_window -= effectivelen;
len -= effectivelen;
- data += effectivelen;
+ data = ((uint8_t*)data + effectivelen);
}
leave_function();