From 7225ca9d02426dad6b16182f7783c701e5c7d9c6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 4 Oct 2001 11:49:25 +0000 Subject: Don't pass through characters with codes < 16. svn path=/trunk/; revision=3538 --- unmime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unmime.c') 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) -- cgit v1.2.3