1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

sftp_packet_read: use 32bit variables for 32bit data

This commit is contained in:
Daniel Stenberg
2011-01-09 00:34:09 +01:00
parent 7015488150
commit 8ce9a66ccf
2 changed files with 3 additions and 2 deletions

View File

@@ -168,8 +168,9 @@ sftp_packet_read(LIBSSH2_SFTP *sftp)
LIBSSH2_CHANNEL *channel = sftp->channel;
LIBSSH2_SESSION *session = channel->session;
unsigned char *packet;
size_t packet_len, packet_received;
size_t packet_received;
ssize_t rc;
uint32_t packet_len; /* 32bits on the wire */
_libssh2_debug(session, LIBSSH2_TRACE_SFTP, "recv packet");