summaryrefslogtreecommitdiffstats
path: root/libssh/auth.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-05 10:43:59 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-05 10:43:59 +0000
commit8253e2170e39da83d57207f57e5997feb7ffa230 (patch)
tree62cc74125d0afdeb287751debd9b7d383c8a995f /libssh/auth.c
parent2aeeb5a518ed88c97c43bad1ccc3a44efdc19950 (diff)
downloadlibssh-8253e2170e39da83d57207f57e5997feb7ffa230.tar.gz
libssh-8253e2170e39da83d57207f57e5997feb7ffa230.tar.xz
libssh-8253e2170e39da83d57207f57e5997feb7ffa230.zip
Fix build warnings found with printf checking of ssh_set_error().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@405 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/auth.c')
-rw-r--r--libssh/auth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh/auth.c b/libssh/auth.c
index 398dec3..23c6345 100644
--- a/libssh/auth.c
+++ b/libssh/auth.c
@@ -838,7 +838,9 @@ static int kbdauth_info_get(SSH_SESSION *session){
free(instruction);
nprompts=ntohl(nprompts);
if(nprompts>KBDINT_MAX_PROMPT){
- ssh_set_error(session,SSH_FATAL,"Too much prompt asked from server: %lu(0x%.8lx)",nprompts,nprompts);
+ ssh_set_error(session, SSH_FATAL,
+ "Too much prompt asked from server: %u (0x%.4x)",
+ nprompts, nprompts);
leave_function();
return SSH_AUTH_ERROR;
}