mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-03 15:40:32 +00:00
mmime: fix prevq logic
This commit is contained in:
parent
88898a4e5e
commit
cf594afb83
3
mmime.c
3
mmime.c
@ -242,6 +242,7 @@ print_header(char *line) {
|
||||
printf("?=\n");
|
||||
s += w;
|
||||
linelen = 0;
|
||||
prevq = 1;
|
||||
}
|
||||
if (s < e) {
|
||||
if (linelen + (e-s)+13 > 78) {
|
||||
@ -253,13 +254,13 @@ print_header(char *line) {
|
||||
linelen += 13;
|
||||
linelen += gen_qp((uint8_t *)s, e-s, 999, 1);
|
||||
printf("?=");
|
||||
prevq = 1;
|
||||
} else {
|
||||
fwrite(s, 1, e-s, stdout);
|
||||
linelen += e-s;
|
||||
prevq = 0;
|
||||
}
|
||||
}
|
||||
prevq = 1;
|
||||
} else {
|
||||
if (linelen + (e-s) > 78) {
|
||||
printf("\n");
|
||||
|
Loading…
Reference in New Issue
Block a user