(insert_from_string_1): Check gap size against number

of outgoing bytes, not incoming bytes.
This commit is contained in:
Andreas Schwab 1999-08-04 11:26:17 +00:00
parent 2e4a0140b9
commit 534b98409f

View file

@ -1251,7 +1251,7 @@ insert_from_string_1 (string, pos, pos_byte, nchars, nbytes,
if (PT != GPT)
move_gap_both (PT, PT_BYTE);
if (GAP_SIZE < nbytes)
if (GAP_SIZE < outgoing_nbytes)
make_gap (outgoing_nbytes - GAP_SIZE);
UNGCPRO;