mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-12 15:41:16 +03:00
options.c: Use format specifier %d for int
%u was being used for printing int type argument which is signed. This commit changes the format specifier to %d. Signed-off-by: Eshan Kelkar <eshankelkar@galorithm.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
60aa354c19
commit
414a276d2b
@@ -1219,7 +1219,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type,
|
||||
int *x = (int *)value;
|
||||
if (*x > 0 && *x < 768) {
|
||||
ssh_set_error(session, SSH_REQUEST_DENIED,
|
||||
"The provided value (%u) for minimal RSA key "
|
||||
"The provided value (%d) for minimal RSA key "
|
||||
"size is too small. Use at least 768 bits.",
|
||||
*x);
|
||||
return -1;
|
||||
@@ -2471,7 +2471,7 @@ ssh_bind_options_set(ssh_bind sshbind,
|
||||
if (*x > 0 && *x < 768) {
|
||||
ssh_set_error(sshbind,
|
||||
SSH_REQUEST_DENIED,
|
||||
"The provided value (%u) for minimal RSA key "
|
||||
"The provided value (%d) for minimal RSA key "
|
||||
"size is too small. Use at least 768 bits.",
|
||||
*x);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user