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] == '#') {
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;
}
}

Loading…
Cancel
Save