diff options
| author | Andreas Schneider <asn@cryptomilk.org> | 2011-04-15 19:02:21 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2011-04-15 19:03:02 +0200 |
| commit | b1d58c5454fc8d75be5f5b4fdcca582d089c0827 (patch) | |
| tree | 751ea13f896372967d5a797e8135748a1582b52b /src/sftp.c | |
| parent | ced66eb11f48107a3354a39345c73422a4b33582 (diff) | |
| download | libssh-b1d58c5454fc8d75be5f5b4fdcca582d089c0827.tar.gz libssh-b1d58c5454fc8d75be5f5b4fdcca582d089c0827.tar.xz libssh-b1d58c5454fc8d75be5f5b4fdcca582d089c0827.zip | |
Fix assertion with Visual Studio because of %zu.
(cherry picked from commit ef658b4bef82670b6064078df355d6b6cf5ac999)
Diffstat (limited to 'src/sftp.c')
| -rw-r--r-- | src/sftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1817,7 +1817,7 @@ ssize_t sftp_read(sftp_file handle, void *buf, size_t count) { if (ssh_string_len(datastring) > count) { ssh_set_error(sftp->session, SSH_FATAL, "Received a too big DATA packet from sftp server: " - "%zu and asked for %zu", + "%" PRIdS " and asked for %" PRIdS, ssh_string_len(datastring), count); ssh_string_free(datastring); return -1; @@ -1938,7 +1938,7 @@ int sftp_async_read(sftp_file file, void *data, uint32_t size, uint32_t id){ if (ssh_string_len(datastring) > size) { ssh_set_error(sftp->session, SSH_FATAL, "Received a too big DATA packet from sftp server: " - "%zu and asked for %u", + "%" PRIdS " and asked for %u", ssh_string_len(datastring), size); ssh_string_free(datastring); sftp_leave_function(); |
