From 414a276d2b8a369d7a1619a292fd92810c1b12ce Mon Sep 17 00:00:00 2001 From: Eshan Kelkar Date: Mon, 13 May 2024 09:21:33 +0530 Subject: [PATCH] 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 Reviewed-by: Jakub Jelen --- src/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index 705a8dae..01c1650f 100644 --- a/src/options.c +++ b/src/options.c @@ -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;