From f22b813ec1c35d05faf3a57613a3b15ec4ab3859 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Mon, 21 Apr 2008 19:38:41 +0000 Subject: [PATCH 1/1] Revert former patch --- rfc2047.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rfc2047.c b/rfc2047.c index 0c72863..4afd04a 100644 --- a/rfc2047.c +++ b/rfc2047.c @@ -137,8 +137,8 @@ char *convert_header(char *buf) while ((encstart = strstr (inp, "=?"))) { if (encstart != inp) { - memcpy (outp, inp, encstart-inp); - outp += encstart-inp; + memcpy (outp, inp, encstart-inp-1); + outp += encstart-inp-1; } charset = encstart+2; -- 2.20.1