comparison src/msdos.c @ 27775:5e0dd203f6e1

(IT_write_glyphs): Allocate a larger screen_buf as data produced for CODING_MODE_LAST_BLOCK requires.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 20 Feb 2000 13:04:39 +0000
parents 4ce3be69ca1f
children 5b87cdbef5a8
comparison
equal deleted inserted replaced
27774:097c2dd9367a 27775:5e0dd203f6e1
938 { 938 {
939 coding->mode |= CODING_MODE_LAST_BLOCK; 939 coding->mode |= CODING_MODE_LAST_BLOCK;
940 encode_coding (coding, "", conversion_buffer, 0, conversion_buffer_size); 940 encode_coding (coding, "", conversion_buffer, 0, conversion_buffer_size);
941 if (coding->produced > 0) 941 if (coding->produced > 0)
942 { 942 {
943 screen_buf = alloca (coding->produced * 2);
943 for (screen_bp = screen_buf, bp = conversion_buffer; 944 for (screen_bp = screen_buf, bp = conversion_buffer;
944 coding->produced--; bp++) 945 coding->produced--; bp++)
945 { 946 {
946 *screen_bp++ = (unsigned char)*bp; 947 *screen_bp++ = (unsigned char)*bp;
947 *screen_bp++ = ScreenAttrib; 948 *screen_bp++ = ScreenAttrib;