mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-10 05:30:45 -08:00
(write_glyphs): Use a locally declared conversion_buffer.
This commit is contained in:
parent
d2fdb076c0
commit
4d5d6aabc3
1 changed files with 5 additions and 3 deletions
|
|
@ -341,6 +341,8 @@ write_glyphs (register struct glyph *string, register int len)
|
|||
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 @@ write_glyphs (register struct glyph *string, register int len)
|
|||
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue