aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-29 13:51:22 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-29 13:51:22 +0200
commit12eba9432702800cf1a17b71198305cd988c93f9 (patch)
tree17c8d4ad76cb5934cddbdf1f4f9e34b3d305aa5e
parenteb09650bbaa9ad4376677abb37194f436c837847 (diff)
downloadmblaze-12eba9432702800cf1a17b71198305cd988c93f9.tar.gz
rfc2045: put default content type into writable section
-rw-r--r--rfc2045.c5
1 files changed, 4 insertions, 1 deletions
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 != ';') {