mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 12eba9432702800cf1a17b71198305cd988c93f9
parent eb09650bbaa9ad4376677abb37194f436c837847
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Fri, 29 Jul 2016 13:51:22 +0200

rfc2045: put default content type into writable section

Diffstat:
rfc2045.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/rfc2045.c b/rfc2045.c @@ -6,6 +6,9 @@ #include "blaze822.h" #include "blaze822_priv.h" +// needs to be writable +char textplain[] = "text/plain; charset=US-ASCII"; + int blaze822_check_mime(struct message *msg) { @@ -32,7 +35,7 @@ blaze822_mime_body(struct message *msg, char *cte = blaze822_hdr(msg, "content-transfer-encoding"); if (!ct) - ct = "text/plain; charset=US-ASCII"; + ct = textplain; char *s = ct; while (*s && *s != ';') {