1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

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
This commit is contained in:
Andreas Schneider
2009-04-05 10:43:59 +00:00
parent 2aeeb5a518
commit 8253e2170e
3 changed files with 9 additions and 4 deletions

View File

@@ -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;
}