projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix two gcc warnings about confused printf format strings in the
[u/mdw/putty]
/
sshbn.c
diff --git
a/sshbn.c
b/sshbn.c
index
999817d
..
9d69b38
100644
(file)
--- a/
sshbn.c
+++ b/
sshbn.c
@@
-1835,7
+1835,7
@@
int main(int argc, char **argv)
Bignum a, b, c, p;
if (ptrnum != 3) {
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]);
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) {
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);
}
exit(1);
}