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/packet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libssh/packet.c') diff --git a/libssh/packet.c b/libssh/packet.c index 3d1912c..ed3a306 100644 --- a/libssh/packet.c +++ b/libssh/packet.c @@ -23,7 +23,6 @@ #include #include -#include #include #include @@ -148,7 +147,7 @@ static int packet_read2(SSH_SESSION *session) { * have been decrypted) */ if (packet_decrypt(session, - buffer_get(session->in_buffer) + blocksize, + ((uint8_t*)buffer_get(session->in_buffer) + blocksize), buffer_get_len(session->in_buffer) - blocksize) < 0) { ssh_set_error(session, SSH_FATAL, "Decrypt error"); goto error; -- cgit