From d8c148b9643b4de6131f7bbf3abe5b1d2eb29b4a Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Sat, 9 Nov 2013 14:27:12 -0500 Subject: [PATCH] Don't increment the buffer pointer for the NUL string terminator; this lets us concatenate new text on the end of the current output buffer. --- sbr/encode_rfc2047.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbr/encode_rfc2047.c b/sbr/encode_rfc2047.c index dfa373e3..adffce59 100644 --- a/sbr/encode_rfc2047.c +++ b/sbr/encode_rfc2047.c @@ -393,7 +393,7 @@ field_encode_base64(const char *name, char **value, const char *charset) *q++ = '?'; *q++ = '='; *q++ = '\n'; - *q++ = '\0'; + *q = '\0'; } /* -- 2.56.0