aboutsummaryrefslogtreecommitdiff
path: root/rfc2047.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc2047.c')
-rw-r--r--rfc2047.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rfc2047.c b/rfc2047.c
index 0d5bea5..6d4760a 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -41,9 +41,9 @@ blaze822_decode_qp(char *start, char *stop, char **deco, size_t *decleno, int un
unsigned char c2 = s[2];
s += 3;
if (c1 > 127 || c2 > 127 || hex[c1] < 0 || hex[c2] < 0) {
- *buf++ = '?';
- *buf++ = '?';
- *buf++ = '?';
+ *buf++ = '=';
+ *buf++ = c1;
+ *buf++ = c2;
continue;
}
*buf++ = (hex[c1] << 4) | hex[c2];