From: Ken Hornstein Date: Sat, 9 Nov 2013 19:27:12 +0000 (-0500) Subject: Don't increment the buffer pointer for the NUL string terminator; this X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d8c148b9643b4de6131f7bbf3abe5b1d2eb29b4a?ds=sidebyside;hp=--cc 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. --- d8c148b9643b4de6131f7bbf3abe5b1d2eb29b4a 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'; } /*