aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-02 16:51:17 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-02 16:51:17 +0200
commitd138866fd634ba8e030403c496e06a5ccc33ba85 (patch)
tree6bb6aca230c14ee9987e26ced426ccd30d069c3a
parent927f454e0fa82b4192eee9557abbbaaaa9d0ac97 (diff)
downloadmblaze-d138866fd634ba8e030403c496e06a5ccc33ba85.tar.gz
mmime: line length must be <=78
-rw-r--r--mmime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mmime.c b/mmime.c
index 8dc5a59..d9fb6d1 100644
--- a/mmime.c
+++ b/mmime.c
@@ -146,7 +146,7 @@ int gen_file(char *file, char *ct)
printf("Content-Disposition: attachment; filename=\"%s\"\n",
basenam(file));
if (bitlow == 0 && bithigh == 0 &&
- maxlinelen <= 72 && content[st.st_size-1] == '\n') {
+ maxlinelen <= 78 && content[st.st_size-1] == '\n') {
if (!ct)
ct = "text/plain";
printf("Content-Type: %s\n", ct);
@@ -356,7 +356,7 @@ check()
l = c;
}
- if (bitlow == 0 && bithigh == 0 && maxlinelen <= 72 && l == '\n')
+ if (bitlow == 0 && bithigh == 0 && maxlinelen <= 78 && l == '\n')
return 0;
else
return 1;