projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40afd4d
)
gcrypt: Fix format string in debug output.
author
Andre Noll
<maan@tuebingen.mpg.de>
Thu, 1 Jan 2015 17:57:50 +0000
(17:57 +0000)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 11 Jan 2015 15:11:38 +0000
(16:11 +0100)
"len" is of type int, not unsigned.
Found by cppcheck.
gcrypt.c
patch
|
blob
|
history
diff --git
a/gcrypt.c
b/gcrypt.c
index af7f2af1131e1132009fec7e1cb50b160bbca928..f4d4cc6f9d20678ef5a6fa5b41672db108ea2345 100644
(file)
--- a/
gcrypt.c
+++ b/
gcrypt.c
@@
-26,7
+26,7
@@
static void dump_buffer(const char *msg, unsigned char *buf, int len)
{
int i;
- fprintf(stderr, "%s (%
u
bytes): ", msg, len);
+ fprintf(stderr, "%s (%
d
bytes): ", msg, len);
for (i = 0; i < len; i++)
fprintf(stderr, "%02x ", buf[i]);
fprintf(stderr, "\n");