diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-10-25 07:53:05 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-10-25 07:53:05 +0000 |
commit | 121fedb8bdf29fddda060460c7383dae28cda46c (patch) | |
tree | 1451c9e128fd0b6d270cfcc374545bc6c174a800 /src/insdel.c | |
parent | 0fe096ba39a4636a8df2e3f560dc246289c5e49b (diff) | |
download | emacs-121fedb8bdf29fddda060460c7383dae28cda46c.tar.gz |
(insert_from_buffer_1): Don't use min.
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |