_buffer_size): If coding->type is
coding_type_ccl, double magnification on CRLF encoding.
This commit is contained in:
parent
38356c7211
commit
a84f151963
1 changed files with 5 additions and 1 deletions
|
@ -4505,7 +4505,11 @@ encoding_buffer_size (coding, src_bytes)
|
|||
int magnification;
|
||||
|
||||
if (coding->type == coding_type_ccl)
|
||||
magnification = coding->spec.ccl.encoder.buf_magnification;
|
||||
{
|
||||
magnification = coding->spec.ccl.encoder.buf_magnification;
|
||||
if (coding->eol_type == CODING_EOL_CRLF)
|
||||
magnification *= 2;
|
||||
}
|
||||
else if (CODING_REQUIRE_ENCODING (coding))
|
||||
magnification = 3;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue