From f6939e2bc931b7894feb6897805e53e11a39eb45 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 22 Dec 2012 18:09:02 +0000 Subject: [PATCH 1/1] Fix two gcc warnings about confused printf format strings in the bignum code's test harness. Thanks to Sup Yut Sum for fixing this in TortoisePlink and Sven Strickroth for bringing it to my attention. git-svn-id: svn://svn.tartarus.org/sgt/putty@9731 cda61777-01e9-0310-a592-d414129be87e --- sshbn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sshbn.c b/sshbn.c index 999817db..9d69b385 100644 --- a/sshbn.c +++ b/sshbn.c @@ -1835,7 +1835,7 @@ int main(int argc, char **argv) Bignum a, b, c, p; if (ptrnum != 3) { - printf("%d: mul with %d parameters, expected 3\n", line); + printf("%d: mul with %d parameters, expected 3\n", line, ptrnum); exit(1); } a = bignum_from_bytes(ptrs[0], ptrs[1]-ptrs[0]); @@ -1868,7 +1868,7 @@ int main(int argc, char **argv) Bignum base, expt, modulus, expected, answer; if (ptrnum != 4) { - printf("%d: mul with %d parameters, expected 3\n", line); + printf("%d: mul with %d parameters, expected 4\n", line, ptrnum); exit(1); } -- 2.11.0