mmime: gen_build: don't crash on #-line without space

pull/10/head
Christian Neukirchen 8 years ago
parent e531f43ad6
commit 0b2e4880f5

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

Loading…
Cancel
Save