FreeCalypso > hg > falcon-mail-tools
diff f-demime/qpdec.c @ 4:612c4d0df768
f-demime: rework for unboundedly long lines
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sat, 06 May 2023 09:02:12 +0000 |
| parents | 05651a1b8ba8 |
| children |
line wrap: on
line diff
--- a/f-demime/qpdec.c Sat May 06 06:41:20 2023 +0000 +++ b/f-demime/qpdec.c Sat May 06 09:02:12 2023 +0000 @@ -48,7 +48,7 @@ } void -qpdec_input_line(line) +qpdec_input_line(line, unterm) char *line; { char *cp; @@ -61,8 +61,11 @@ dec_outf(c); continue; } - if (!*cp) + if (!*cp) { + if (unterm) + qpdec_err_flag = 1; return; + } if (isxdigit(cp[0]) && isxdigit(cp[1])) { c = decode_hex_byte(cp); cp += 2; @@ -72,5 +75,6 @@ qpdec_err_flag = 1; dec_outf('='); } - dec_outf('\n'); + if (!unterm) + dec_outf('\n'); }
