From 8542f675f43f88c846398a7cb326a44cc1b6bb21 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 15 Jan 2020 17:19:25 +0100 Subject: [PATCH] sftp: Replace PRIdS with ANSI C99 %zu Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen --- src/sftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sftp.c b/src/sftp.c index b64aad61..c6d095a3 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -1982,7 +1982,7 @@ ssize_t sftp_read(sftp_file handle, void *buf, size_t count) { if (datalen > count) { ssh_set_error(sftp->session, SSH_FATAL, "Received a too big DATA packet from sftp server: " - "%" PRIdS " and asked for %" PRIdS, + "%zu and asked for %zu", datalen, count); SSH_STRING_FREE(datastring); return -1; @@ -2104,7 +2104,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: " - "%" PRIdS " and asked for %u", + "%zu and asked for %u", ssh_string_len(datastring), size); SSH_STRING_FREE(datastring); return SSH_ERROR;