diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-30 10:45:58 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-30 10:45:58 +0200 |
commit | 766bae9d7626bb596fc3b60d2cd5fe5a7fc356db (patch) | |
tree | ec6aa6d9ea44d8eea5c47a8d1245c4fbe2930d96 /libssh/packet.c | |
parent | 94a57df0c9eceda18679b2823de74837fb5a73c1 (diff) | |
download | libssh-766bae9d7626bb596fc3b60d2cd5fe5a7fc356db.tar.gz libssh-766bae9d7626bb596fc3b60d2cd5fe5a7fc356db.tar.xz libssh-766bae9d7626bb596fc3b60d2cd5fe5a7fc356db.zip |
Fix build with MSVC.
Diffstat (limited to 'libssh/packet.c')
-rw-r--r-- | libssh/packet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libssh/packet.c b/libssh/packet.c index 3d1912c7..ed3a306c 100644 --- a/libssh/packet.c +++ b/libssh/packet.c @@ -23,7 +23,6 @@ #include <stdlib.h> #include <stdio.h> -#include <unistd.h> #include <string.h> #include <errno.h> @@ -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; |