From 8d6d96657adc8645819bea5a633f7e1b8b3ee8d2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 5 Apr 2009 18:36:15 +0000 Subject: Fix build warnings on x86_64. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@408 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/sftp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libssh/sftp.c b/libssh/sftp.c index 05a6ea7..8249397 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -1112,7 +1112,8 @@ ssize_t sftp_read(SFTP_FILE *handle, void *buf, size_t count){ return -1; } if(string_len(datastring) > count){ - ssh_set_error(sftp->session,SSH_FATAL,"Received a too big DATA packet from sftp server : %d and asked for %d", + ssh_set_error(sftp->session, SSH_FATAL, + "Received a too big DATA packet from sftp server: %zu and asked for %zu", string_len(datastring), count); free(datastring); return -1; @@ -1205,7 +1206,8 @@ int sftp_async_read(SFTP_FILE *file, void *data, u32 size, u32 id){ return -1; } if(string_len(datastring)>size){ - ssh_set_error(sftp->session,SSH_FATAL,"Received a too big DATA packet from sftp server : %d and asked for %d", + ssh_set_error(sftp->session, SSH_FATAL, + "Received a too big DATA packet from sftp server: %zu and asked for %u", string_len(datastring),size); free(datastring); sftp_leave_function(); -- cgit