# HG changeset patch # User Richard M. Stallman # Date 783071585 0 # Node ID ee2c6124ae9201f5df083e644a0fe5febf8b058a # Parent c12e33cc5e0aa302b178d65a7185d64826a72147 (insert_from_buffer_1): Don't use min. diff -r c12e33cc5e0a -r ee2c6124ae92 src/insdel.c --- a/src/insdel.c Tue Oct 25 06:10:26 1994 +0000 +++ b/src/insdel.c Tue Oct 25 07:53:05 1994 +0000 @@ -485,7 +485,9 @@ if (pos < BUF_GPT (buf)) { - chunk = min (length, BUF_GPT (buf) - pos); + chunk = BUF_GPT (buf) - pos; + if (chunk > length) + chunk = length; bcopy (BUF_CHAR_ADDRESS (buf, pos), GPT_ADDR, chunk); } else