]> code.delx.au - gnu-emacs/blobdiff - src/coding.c
(temp_output_buffer_setup): Use new type for overlays_(before|after).
[gnu-emacs] / src / coding.c
index a7484b427113a26278b90df131a8ed413d99ce65..b6458f284f91983e56eaba7378afa6fe9e704a01 100644 (file)
@@ -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