aboutsummaryrefslogtreecommitdiffstats
path: root/sdump.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-02-04 09:50:53 +0000
committerMatthias Andree <matthias.andree@gmx.de>2010-02-04 09:50:53 +0000
commitf1c7607615ebd48807db6170937fe79bb89d47d4 (patch)
treedbd620e5702f6642a809e8b6c52830460aea8dde /sdump.c
parent8950b4deb1d513b592af483218a21b3fbed004f1 (diff)
downloadfetchmail-f1c7607615ebd48807db6170937fe79bb89d47d4.tar.gz
fetchmail-f1c7607615ebd48807db6170937fe79bb89d47d4.tar.bz2
fetchmail-f1c7607615ebd48807db6170937fe79bb89d47d4.zip
Security fix for sdump() (X.509 cert display in verbose mode).
svn path=/branches/BRANCH_6-3/; revision=5467
Diffstat (limited to 'sdump.c')
-rw-r--r--sdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdump.c b/sdump.c
index 6edf0a66..3748672a 100644
--- a/sdump.c
+++ b/sdump.c
@@ -36,7 +36,7 @@ char *sdump(const char *in, size_t len)
if (isprint((unsigned char)in[i])) {
*(oi++) = in[i];
} else {
- oi += sprintf(oi, "\\x%02X", in[i]);
+ oi += sprintf(oi, "\\x%02X", (unsigned char)in[i]);
}
}
*oi = '\0';