]> diplodocus.org Git - nmh/commitdiff
Don't increment the buffer pointer for the NUL string terminator; this
authorKen Hornstein <kenh@pobox.com>
Sat, 9 Nov 2013 19:27:12 +0000 (14:27 -0500)
committerKen Hornstein <kenh@pobox.com>
Sat, 9 Nov 2013 19:27:12 +0000 (14:27 -0500)
lets us concatenate new text on the end of the current output buffer.

sbr/encode_rfc2047.c

index dfa373e..adffce5 100644 (file)
@@ -393,7 +393,7 @@ field_encode_base64(const char *name, char **value, const char *charset)
        *q++ = '?';
        *q++ = '=';
        *q++ = '\n';
        *q++ = '?';
        *q++ = '=';
        *q++ = '\n';
-       *q++ = '\0';
+       *q = '\0';
     }
 
     /*
     }
 
     /*