]> 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 dfa373e36366f28cf1b7b68431dd6bc1f06db0a7..adffce59756935e22c3bed4dd1ab403811335191 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';
     }
 
     /*
     }
 
     /*