aboutsummaryrefslogtreecommitdiffstats
path: root/unmime.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-10-04 11:49:25 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-10-04 11:49:25 +0000
commit7225ca9d02426dad6b16182f7783c701e5c7d9c6 (patch)
treec68c49e0ef434e0a03715b5dcb184338a6a4a204 /unmime.c
parent14ad02cb434d1f30d2453190942cfb89c5b7d17e (diff)
downloadfetchmail-7225ca9d02426dad6b16182f7783c701e5c7d9c6.tar.gz
fetchmail-7225ca9d02426dad6b16182f7783c701e5c7d9c6.tar.bz2
fetchmail-7225ca9d02426dad6b16182f7783c701e5c7d9c6.zip
Don't pass through characters with codes < 16.
svn path=/trunk/; revision=3538
Diffstat (limited to 'unmime.c')
-rw-r--r--unmime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unmime.c b/unmime.c
index 3e2ec521..d7882fa0 100644
--- a/unmime.c
+++ b/unmime.c
@@ -30,7 +30,7 @@ static unsigned char unhex(unsigned char c)
else if ((c >= 'a') && (c <= 'f'))
return (c - 'a' + 10);
else
- return c;
+ return 16; /* invalid hex character */
}
static int qp_char(unsigned char c1, unsigned char c2, unsigned char *c_out)