From: Richard M. Stallman Date: Tue, 25 Oct 1994 07:53:05 +0000 (+0000) Subject: (insert_from_buffer_1): Don't use min. X-Git-Tag: emacs-19.34~6170 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=61bd0e9ccd7510ec0dc5641347caaf0c7714483e;p=emacs.git (insert_from_buffer_1): Don't use min. --- diff --git a/src/insdel.c b/src/insdel.c index 7b1e6b124b0..47e75298005 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -485,7 +485,9 @@ insert_from_buffer_1 (buf, pos, length, inherit) 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