From 12eba9432702800cf1a17b71198305cd988c93f9 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 29 Jul 2016 13:51:22 +0200 Subject: rfc2045: put default content type into writable section --- rfc2045.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rfc2045.c') diff --git a/rfc2045.c b/rfc2045.c index c45f3fd..c20f4c4 100644 --- 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 != ';') { -- cgit 1.4.1