mblaze

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

commit 2ef903a06547f9461dd6769baf7a19f4dd17dc39
parent 3095d48655b59ecd2f3f162f14a31498ec112937
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Tue,  8 Nov 2016 16:34:34 +0100

mmime: don't truncate a #type line when it has invalid syntax

Diffstat:
mmime.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/mmime.c b/mmime.c @@ -298,6 +298,7 @@ gen_build() if (!rflag && line[0] == '#') { char *f = strchr(line, ' '); if (f) { + char of = *f; *f = 0; if (strchr(line, '/')) { printf("\n--%s\n", sep); @@ -307,6 +308,7 @@ gen_build() intext = 0; continue; } + *f = of; } }