mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 07:38:06 -05:00
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. [originally from svn r9731]
This commit is contained in:
parent
38b668648a
commit
f2bbeca400
4
sshbn.c
4
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user