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

pull/10/head
Christian Neukirchen 8 years ago
parent 3095d48655
commit 2ef903a065

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

Loading…
Cancel
Save