changeset 30837:b6b7264277b5

(write_glyphs): Use a locally declared conversion_buffer.
author Kenichi Handa <handa@m17n.org>
date Wed, 16 Aug 2000 01:38:49 +0000
parents b590724d8c48
children c9f793802722
files src/w32console.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32console.c	Wed Aug 16 01:38:32 2000 +0000
+++ b/src/w32console.c	Wed Aug 16 01:38:49 2000 +0000
@@ -341,6 +341,8 @@
   int produced, consumed, i;
   struct frame * f = PICK_FRAME ();
   WORD char_attr;
+  unsigned char conversion_buffer[1024];
+  int conversion_buffer_size = sizeof conversion_buffer;
 
   if (len <= 0)
     return;
@@ -364,9 +366,9 @@
 
       while (n > 0)
         {
-	  /* We use a shared conversion buffer of the current size
-	     (1024 bytes at least).  Usually it is sufficient, but if
-	     not, we just repeat the loop.  */
+	  /* We use a fixed size (1024 bytes) of conversion buffer.
+	     Usually it is sufficient, but if not, we just repeat the
+	     loop.  */
 	  produced = encode_terminal_code (string, conversion_buffer,
 					   n, conversion_buffer_size,
 					   &consumed);