diff options
| author | Richard M. Stallman | 1994-10-25 07:53:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-25 07:53:05 +0000 |
| commit | 61bd0e9ccd7510ec0dc5641347caaf0c7714483e (patch) | |
| tree | 82028b1c60b30aa379d199d73028298397455957 /src | |
| parent | e8649704b1f022d24b838a61190dfbf5da8c8007 (diff) | |
| download | emacs-61bd0e9ccd7510ec0dc5641347caaf0c7714483e.tar.gz emacs-61bd0e9ccd7510ec0dc5641347caaf0c7714483e.zip | |
(insert_from_buffer_1): Don't use min.
Diffstat (limited to 'src')
| -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) | |||
| 485 | 485 | ||
| 486 | if (pos < BUF_GPT (buf)) | 486 | if (pos < BUF_GPT (buf)) |
| 487 | { | 487 | { |
| 488 | chunk = min (length, BUF_GPT (buf) - pos); | 488 | chunk = BUF_GPT (buf) - pos; |
| 489 | if (chunk > length) | ||
| 490 | chunk = length; | ||
| 489 | bcopy (BUF_CHAR_ADDRESS (buf, pos), GPT_ADDR, chunk); | 491 | bcopy (BUF_CHAR_ADDRESS (buf, pos), GPT_ADDR, chunk); |
| 490 | } | 492 | } |
| 491 | else | 493 | else |