From 766bae9d7626bb596fc3b60d2cd5fe5a7fc356db Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Jul 2009 10:45:58 +0200 Subject: Fix build with MSVC. --- libssh/channels.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libssh/channels.c') diff --git a/libssh/channels.c b/libssh/channels.c index 8b190b4..2dd9966 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -24,7 +24,6 @@ #include #include -#include #include #include @@ -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(); -- cgit